1
0
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:
Emanuil Rusev 2014-04-24 23:52:42 +03:00
parent cd1c030362
commit 4f027386b1

View File

@ -158,12 +158,12 @@ class Parsedown
}
else
{
unset($CurrentBlock['incomplete']);
if (method_exists($this, 'complete'.$CurrentBlock['type']))
{
$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'];
unset($elements[0]);