Ignore html comments as well with markupEscape option.

This commit is contained in:
naNuke 2014-10-10 19:07:25 +02:00
parent f91e4dece3
commit 68f3aea036
1 changed files with 5 additions and 0 deletions

View File

@ -359,6 +359,11 @@ class Parsedown
protected function identifyComment($Line)
{
if ($this->markupEscaped)
{
return;
}
if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!')
{
$Block = array(