erusev / parsedown-extra

Markdown Extra Extension for Parsedown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backslash escapes don't work

remi-blaise opened this issue · comments

Escaping doesn't seem to work properly.

For exemple :

\:exclamation: Ne jamais rien coder d'inutile. Ainsi, il est déconseillé de déclarer : `@color_bg: white;`.

What's the expected output?

Just

<p>:exclamation: Ne jamais rien coder d'inutile. Ainsi, il est déconseillé de déclarer : <code>@color_bg: white;</code>.</p>

You need to escape the : because else it will output a <dl>. but you want to get :exclamation:, not \:exclamation:.
There is the same problem for the pipe |, so I think that escaping as described here is not implemented.