mirror of
https://github.com/erusev/parsedown.git
synced 2025-01-17 12:48:28 +01: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…
x
Reference in New Issue
Block a user