1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

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

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

View File

@ -10,3 +10,5 @@ ___
foo
***
* * *