mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Add test of escaped html comment.
This commit is contained in:
parent
68f3aea036
commit
74926c9831
@ -109,6 +109,10 @@ paragraph
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
comment
|
||||||
|
|
||||||
|
<!-- html comment -->
|
||||||
MARKDOWN_WITH_MARKUP;
|
MARKDOWN_WITH_MARKUP;
|
||||||
|
|
||||||
$expectedHtml = <<<EXPECTED_HTML
|
$expectedHtml = <<<EXPECTED_HTML
|
||||||
@ -125,6 +129,8 @@ MARKDOWN_WITH_MARKUP;
|
|||||||
color: red;
|
color: red;
|
||||||
}</code></pre>
|
}</code></pre>
|
||||||
<p></style></p>
|
<p></style></p>
|
||||||
|
<p>comment</p>
|
||||||
|
<p><!-- html comment --></p>
|
||||||
EXPECTED_HTML;
|
EXPECTED_HTML;
|
||||||
$parsedownWithNoMarkup = new Parsedown();
|
$parsedownWithNoMarkup = new Parsedown();
|
||||||
$parsedownWithNoMarkup->setMarkupEscaped(true);
|
$parsedownWithNoMarkup->setMarkupEscaped(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user