mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Headers can't start with more than three spaces
This commit is contained in:
parent
3d41f270c2
commit
81a2050608
@ -42,6 +42,10 @@ final class Header implements Block
|
||||
Block $Block = null,
|
||||
State $State = null
|
||||
) {
|
||||
if ($Context->line()->indent() > 3) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$State = $State ?: new State;
|
||||
|
||||
$level = \strspn($Context->line()->text(), '#');
|
||||
|
Loading…
Reference in New Issue
Block a user