diff --git a/MacDown/Code/Document/MPDocument.m b/MacDown/Code/Document/MPDocument.m index 2692bf67..c8e8c177 100644 --- a/MacDown/Code/Document/MPDocument.m +++ b/MacDown/Code/Document/MPDocument.m @@ -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)