markdown-js icon indicating copy to clipboard operation
markdown-js copied to clipboard

Disabled global HTML escaping, while always escaping within code blocks.

Open michaek opened this issue 12 years ago • 5 comments
trafficstars

This follows from https://github.com/evilstreak/markdown-js/pull/34, opting to disable HTML escaping except in code blocks. I understand that it's been stated to be undesirable by the maintainers, but I think it is a more consistent implementation of Markdown.

I've added a test that mimics the handling here http://babelmark.bobtfish.net/?markdown=%3Cp%3EHTML%3C%2Fp%3E%0D%0A%0D%0A++++%3Cp%3ECode%3C%2Fp%3E&src=1&dest=2

michaek avatar May 02 '13 17:05 michaek

Any feedback? I think the Babelmark link makes it pretty clear that escaping HTML outside a code block is unconventional for Markdown. (Not to mention that the Markdown documentation is explicit about allowing HTML.)

michaek avatar Jun 18 '13 14:06 michaek

+1

I also need [an optional flag for] markdown-js to pass through HTML markup which is in Markdown files. I forked and cherry-picked michaek's work. WFM so far.

ozten avatar Jul 01 '13 20:07 ozten

I found a bug with this patch, noted here.

ozten avatar Jul 02 '13 22:07 ozten

Anything new regarding HTML-support?

nunull avatar Jan 30 '14 15:01 nunull

I'm also feeling the need for this option. Any progress here?

dustMason avatar May 20 '14 19:05 dustMason