Skip to content

Does not support normal HTML #295

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Andrewyg opened this issue Jul 13, 2017 · 6 comments
Open

Does not support normal HTML #295

Andrewyg opened this issue Jul 13, 2017 · 6 comments

Comments

@Andrewyg
Copy link

Normally markdown editor should support html tag but if you write some thing like <a>hi</a> it'll become something like this <p>&lt;a&gt;hi&lt;/a&gt;</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

@begogna
Copy link

begogna commented Aug 2, 2017

I have found the same problem !

@jduprey
Copy link

jduprey commented Sep 29, 2017

Same here. markdown-js should honor existing HTML markup w/in the text, instead, it escapes it. Please fix?

@3stacks
Copy link

3stacks commented Oct 1, 2017

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. #98

@jduprey
Copy link

jduprey commented Oct 4, 2017

marked - seems to be an acceptable replacement.
https://github.com/chjj/marked

@3stacks
Copy link

3stacks commented Oct 4, 2017

@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.

@jduprey
Copy link

jduprey commented Oct 4, 2017

Yes. I, too, switched slightly after my original post and it seems to work great.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants