diff --git a/MacDown/Code/Extension/NSString+Lookup.m b/MacDown/Code/Extension/NSString+Lookup.m index c6010eb2..fd972a29 100644 --- a/MacDown/Code/Extension/NSString+Lookup.m +++ b/MacDown/Code/Extension/NSString+Lookup.m @@ -54,7 +54,8 @@ - (NSArray *)matchesForPattern:(NSString *)p - (id)frontMatter:(NSUInteger *)contentOffset { - static NSString *pattern = @"^-{3}\n(.*?\n)((?:-{3})|(?:\\.{3}))"; + static NSString *pattern = + @"^-{3}[\r\n]+(.*?[\r\n]+)((?:-{3})|(?:\\.{3}))"; NSRegularExpressionOptions op = NSRegularExpressionDotMatchesLineSeparators; NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:pattern