mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Don't remove right #'s too early (before dealing with whitesapce)
This commit is contained in:
parent
b8cdc6e9a5
commit
00821bd072
@ -56,7 +56,7 @@ final class Header implements Block
|
|||||||
|
|
||||||
/** @var 1|2|3|4|5|6 $level */
|
/** @var 1|2|3|4|5|6 $level */
|
||||||
|
|
||||||
$text = \trim($Context->line()->text(), '#');
|
$text = \ltrim($Context->line()->text(), '#');
|
||||||
|
|
||||||
$StrictMode = $State->getOrDefault(StrictMode::class);
|
$StrictMode = $State->getOrDefault(StrictMode::class);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user