VSharapov/INDEXmd

Raw text option

VSharapov opened this issue · 1 comments

Should easy - just adding another menuOption:
parser: {"markdown": true, "raw": false}

If you have a <pre> and you set the innerText (instead of innerHTML) ... will it automagically turn carets into &lt;&gt; ? 🤷
Worth a try.

If you have a <pre> and you set the innerText (instead of innerHTML) ... will it automagically turn carets into &lt;&gt; ?

Yes!

document.getElementsByTagName('pre')[0].innerText = "multi\nline</pre>and this\nis fine"