1
0
mirror of https://github.com/erusev/parsedown.git synced 2025-09-02 19:32:35 +02:00

Use standard library function

This commit is contained in:
Aidan Woods
2018-04-09 00:55:36 +01:00
parent 3ea08140b6
commit b53aa74a72

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