Skip to content

Commit

Permalink
Fix bug where HTML meta is counted as text content
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Sep 17, 2014
1 parent c57d907 commit 2d1abfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MacDown/Code/Document/MPDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ - (NSString *)nodeText
case 11:
if ([self respondsToSelector:@selector(tagName)])
{
NSString *tagName = [(id)self tagName];
NSString *tagName = [(id)self tagName].uppercaseString;
if ([tagName isEqualToString:@"SCRIPT"]
|| [tagName isEqualToString:@"STYLE"])
|| [tagName isEqualToString:@"STYLE"]
|| [tagName isEqualToString:@"HEAD"])
break;
}
for (DOMNode *c = self.firstChild; c; c = c.nextSibling)
Expand Down

0 comments on commit 2d1abfd

Please sign in to comment.