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

Use rawHtml to provide conditional escaping on special chars

This commit is contained in:
Aidan Woods 2018-03-18 22:46:08 +00:00
parent 011465bca6
commit 0205a4cbe6
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -1189,7 +1189,7 @@ class Parsedown
if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters)) if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters))
{ {
return array( return array(
'markup' => $Excerpt['text'][1], 'element' => array('rawHtml' => $Excerpt['text'][1]),
'extent' => 2, 'extent' => 2,
); );
} }