Skip to content

Commit

Permalink
Allow tab after setext header line (see commonmark/commonmark.js#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Nov 22, 2016
1 parent a885f32 commit 30e7cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Block/Parser/SetExtHeadingParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function parse(ContextInterface $context, Cursor $cursor)
return false;
}

$match = RegexHelper::matchAll('/^(?:=+|-+) *$/', $cursor->getLine(), $cursor->getFirstNonSpacePosition());
$match = RegexHelper::matchAll('/^(?:=+|-+)[ \t]*$/', $cursor->getLine(), $cursor->getFirstNonSpacePosition());
if ($match === null) {
return false;
}
Expand Down

0 comments on commit 30e7cf8

Please sign in to comment.