mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
More expensive statement last
This commit is contained in:
parent
7e15d99d90
commit
450a74fedf
@ -773,10 +773,8 @@ class Parsedown
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ($Line['indent'] < 4 and chop(chop($Line['text'], ' '), $Line['text'][0]) === '')
|
||||||
chop(chop($Line['text'], ' '), $Line['text'][0]) === ''
|
{
|
||||||
and $Line['indent'] < 4
|
|
||||||
) {
|
|
||||||
$Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
|
$Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
|
||||||
|
|
||||||
return $Block;
|
return $Block;
|
||||||
|
Loading…
Reference in New Issue
Block a user