1
0
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:
Aidan Woods 2018-04-09 00:55:36 +01:00
parent 3ea08140b6
commit b53aa74a72
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -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)
{