Skip to content

Commit 09bb53c

Browse files
committed
allow optional space in hint syntax
so ::: tip works instead of just :::tip looks like maybe that was lost at some point
1 parent ed9b8a8 commit 09bb53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Markdown/Hint/HintStartParser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function tryStart(Cursor $cursor, MarkdownParserStateInterface $parserSta
1515
return BlockStart::none();
1616
}
1717

18-
$fence = $cursor->match('/^(?:\:{3,}(?!.*`))/');
18+
$fence = $cursor->match('/^(?:\:{3,}\s?(?!.*`))/');
1919

2020
if ($fence === null) {
2121
return BlockStart::none();

0 commit comments

Comments
 (0)