We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c76ff9c commit b16a14cCopy full SHA for b16a14c
MacDown/Code/Extension/NSString+Lookup.m
@@ -54,7 +54,8 @@ - (NSArray *)matchesForPattern:(NSString *)p
54
55
- (id)frontMatter:(NSUInteger *)contentOffset
56
{
57
- static NSString *pattern = @"^-{3}\n(.*?\n)((?:-{3})|(?:\\.{3}))";
+ static NSString *pattern =
58
+ @"^-{3}[\r\n]+(.*?[\r\n]+)((?:-{3})|(?:\\.{3}))";
59
NSRegularExpressionOptions op = NSRegularExpressionDotMatchesLineSeparators;
60
NSRegularExpression *regex =
61
[NSRegularExpression regularExpressionWithPattern:pattern
0 commit comments