Skip to content

Commit

Permalink
Allow trailing tabs in setext heading underlines (mirrors commonmark/…
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Nov 8, 2016
1 parent 19fb966 commit da6a863
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 da6a863

Please sign in to comment.