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

Implement EscapeSequence

This commit is contained in:
Aidan Woods
2019-01-20 02:35:03 +00:00
parent 164a39f3e9
commit 79a38a1ebb
2 changed files with 51 additions and 10 deletions

View File

@ -411,16 +411,6 @@ class Parsedown
return $Elements;
}
protected function inlineEscapeSequence($Excerpt)
{
if (isset($Excerpt['text'][1]) and \in_array($Excerpt['text'][1], $this->specialCharacters, true)) {
return [
'element' => ['rawHtml' => $Excerpt['text'][1]],
'extent' => 2,
];
}
}
protected function inlineImage($Excerpt)
{
if (! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[') {