mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Use standard library function
This commit is contained in:
parent
3ea08140b6
commit
b53aa74a72
@ -497,12 +497,7 @@ class Parsedown
|
||||
|
||||
protected function blockHeader($Line)
|
||||
{
|
||||
$level = 1;
|
||||
|
||||
while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
|
||||
{
|
||||
$level ++;
|
||||
}
|
||||
$level = strspn($Line['text'], '#');
|
||||
|
||||
if ($level > 6)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user