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
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;
}