Skip to content

Just render few specific html raw elements in react markdown #144

Answered by wooorm
dante01yoon asked this question in Q&A
Discussion options

You must be logged in to vote

You can support HTML or you can not support HTML. There is no in between.

If you paste the markdown:

<table>
</table>
<dog>
<data>

On the website, you will see <table> </table> <dog> <data>. https://remarkjs.github.io/react-markdown/. If you want that, use that.

react-markdown is about markdown. Not HTML. Not an XML-like language. Markdown is a language with a spec. Markdown you use here on GH will work similarly to markdown that we support. And markdown in other places. You can’t make a new language with these projects. I think it’s much better if you explain to authors how to write markdown: https://commonmark.org/help/

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@dante01yoon
Comment options

@wooorm
Comment options

@dante01yoon
Comment options

Comment options

You must be logged in to vote
1 reply
@dante01yoon
Comment options

Answer selected by dante01yoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants