markdown-js
markdown-js copied to clipboard
Does not support normal HTML
Normally markdown editor should support html tag but if you write some thing like <a>hi</a> it'll become something like this <p><a>hi</a></p this should be fine but how about <h1>hi</h1> it'll become <p><h1>hi</h1></p> where the browser will show hi
I have found the same problem !
Same here. markdown-js should honor existing HTML markup w/in the text, instead, it escapes it. Please fix?
Any update? I'll have to use a different library if this isn't supported
EDIT: Oops, didn't realise this library was dead. There's a PR for adding HTML support that has been un-merged since 2014. https://github.com/evilstreak/markdown-js/pull/98
marked - seems to be an acceptable replacement. https://github.com/chjj/marked
@jduprey, I just switched over to this library last night. It's working perfectly for me, as you can override each individual render method, which allowed me to do all intermediate manipulations I needed.
Can't recommend it enough.
Yes. I, too, switched slightly after my original post and it seems to work great.