EpicEditor
EpicEditor copied to clipboard
Ampersand inside code ticks gets escaped as `&`
In EpicEditor, when adding a code block like this:
foo&bar
...the result looks like this:
foo&bar
I'm pretty sure GitHub also uses Marked.js as a parser, so I'm guessing this is happening in the export()
method?
SOLUTION: In epiceditor.js
, change line 197 from this:
return content.replace(/\u00a0/g, ' ').replace(/ /g, ' ');
...to this:
return content.replace(/\u00a0/g, ' ').replace(/ /g, ' ').replace(/\u0026/g, '&').replace(/&/g, '&');
I will put in a pull request shortly.
:+1: It Rocks !
thx