kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Remove the unescape flag from the toc_data struct. #1

Closed ghost closed 9 years ago

ghost commented 9 years ago

Setting unescape = 0 is always badly broken. The content argument is already valid HTML. If unescape = 0, the HTML is escaped again. So if unescape = 0, we get the following rendering:

# foo `bar`

is output as:

<h1>foo &lt;code&gt;bar&lt;code&gt;</h1>
kjdev commented 9 years ago

Thanks.