Tabs shouldn't break thematic breaks

This commit is contained in:
Aidan Woods 2019-01-22 19:28:12 +00:00
parent 4e9a0113c3
commit fc37ad11ed
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
3 changed files with 9 additions and 3 deletions

View File

@ -30,7 +30,10 @@ final class Rule implements Block
$marker = $Context->line()->text()[0];
if (\substr_count($Context->line()->text(), $marker) >= 3 and \chop($Context->line()->text(), " $marker") === '') {
if (
\substr_count($Context->line()->text(), $marker) >= 3
and \chop($Context->line()->text(), " \t$marker") === ''
) {
return new self;
}

View File

@ -4,4 +4,5 @@
<hr />
<hr />
<p>foo
***</p>
***</p>
<hr />

View File

@ -9,4 +9,6 @@
___
foo
***
***
* * *