1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

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

View File

@ -359,6 +359,11 @@ class Parsedown
protected function identifyComment($Line) 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] === '!') if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!')
{ {
$Block = array( $Block = array(