mirror of
https://github.com/zhigang1992/macdown.git
synced 2026-01-12 22:48:37 +08:00
Fix bug where HTML meta is counted as text content
This commit is contained in:
@@ -192,9 +192,10 @@ static NSString *MPAutosavePropertyKey(
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user