Makdown Preview

I am not able to convert text to markdown, it just convert into HTML not in Github markdown.

I had the same problem.
You have to use dangerouslySetInnerHTML*. Check out it’s documentation here:

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.

Thanks a lot !! Finally Solved.