mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Tabs are allowed after header delimiter
This commit is contained in:
parent
81a2050608
commit
67231cbae1
@ -60,11 +60,14 @@ final class Header implements Block
|
|||||||
|
|
||||||
$StrictMode = $State->getOrDefault(StrictMode::class);
|
$StrictMode = $State->getOrDefault(StrictMode::class);
|
||||||
|
|
||||||
if ($StrictMode->isEnabled() && isset($text[0]) and $text[0] !== ' ') {
|
if (
|
||||||
|
$StrictMode->isEnabled() && isset($text[0])
|
||||||
|
and $text[0] !== ' ' and $text[0] !== "\t"
|
||||||
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = \trim($text, ' ');
|
$text = \trim($text, " \t");
|
||||||
|
|
||||||
return new self($text, $level);
|
return new self($text, $level);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user