mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
"complete" calls should be more consistent
This commit is contained in:
parent
cd1c030362
commit
4f027386b1
|
@ -158,12 +158,12 @@ class Parsedown
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unset($CurrentBlock['incomplete']);
|
|
||||||
|
|
||||||
if (method_exists($this, 'complete'.$CurrentBlock['type']))
|
if (method_exists($this, 'complete'.$CurrentBlock['type']))
|
||||||
{
|
{
|
||||||
$CurrentBlock = $this->{'complete'.$CurrentBlock['type']}($CurrentBlock);
|
$CurrentBlock = $this->{'complete'.$CurrentBlock['type']}($CurrentBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($CurrentBlock['incomplete']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -236,6 +236,15 @@ class Parsedown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ~
|
||||||
|
|
||||||
|
if (isset($CurrentBlock['incomplete']) and method_exists($this, 'complete'.$CurrentBlock['type']))
|
||||||
|
{
|
||||||
|
$CurrentBlock = $this->{'complete'.$CurrentBlock['type']}($CurrentBlock);
|
||||||
|
}
|
||||||
|
|
||||||
|
# ~
|
||||||
|
|
||||||
$elements []= $CurrentBlock['element'];
|
$elements []= $CurrentBlock['element'];
|
||||||
|
|
||||||
unset($elements[0]);
|
unset($elements[0]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user