From 30e7cf83fbf25ae6e20c61ded8d6326c2abdd0fb Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Tue, 22 Nov 2016 09:23:38 -0500 Subject: [PATCH] Allow tab after setext header line (see jgm/commonmark.js#109) --- src/Block/Parser/SetExtHeadingParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Block/Parser/SetExtHeadingParser.php b/src/Block/Parser/SetExtHeadingParser.php index 5a20a6e64d..23de37063c 100644 --- a/src/Block/Parser/SetExtHeadingParser.php +++ b/src/Block/Parser/SetExtHeadingParser.php @@ -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; }