Makdown Preview

Makdown Preview
0

#1

I am not able to convert text to markdown, it just convert into HTML not in Github markdown.
[https://codepen.io/minato-namikaze/pen/wqeZdM]


#2

I had the same problem.
You have to use dangerouslySetInnerHTML*. Check out it’s documentation here: https://facebook.github.io/react/docs/dom-elements.html

Also, don’t forget to sanitize your inputs! Here’s mine, if you want to see how it works:

  • Well, maybe you don’t have to, but that’s how I managed it.

#3

Thanks a lot !! Finally Solved.