sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.8k stars 1.12k forks source link

markdown html encode issue #717

Open DotNetRockStar opened 5 years ago

DotNetRockStar commented 5 years ago

Hi there. When I add quotes, greater than/less than symbols, or anything that would get html decoded, the following code works except it does not render correctly on the page.

''' SomeMethod(d => d.Apply("something")); '''

When I call the following method in javascript:

SimpleMDE.prototype.markdown(str)

it renders the following:

<code>
SomeMethod(d =&gt; d.Apply(&quot;something&quot;));
</code>

When I render this to the dom, it does not show up correctly. It isn't fully decoded.