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:
parent
4e9a0113c3
commit
fc37ad11ed
@ -30,7 +30,10 @@ final class Rule implements Block
|
|||||||
|
|
||||||
$marker = $Context->line()->text()[0];
|
$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;
|
return new self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,3 +5,4 @@
|
|||||||
<hr />
|
<hr />
|
||||||
<p>foo
|
<p>foo
|
||||||
***</p>
|
***</p>
|
||||||
|
<hr />
|
@ -10,3 +10,5 @@ ___
|
|||||||
|
|
||||||
foo
|
foo
|
||||||
***
|
***
|
||||||
|
|
||||||
|
* * *
|
Loading…
Reference in New Issue
Block a user