Marked is not a function (Markdown Previewer)

I need help with the Markdown Previewer. In the console, it says Marked down is not a function. Every time I get to the marked-down part. My code disappears when I set dangerouslySetInnerHTML.

If you use an older version of the marked library then it should work. Try using this one:

https://cdnjs.cloudflare.com/ajax/libs/marked/2.0.3/marked.min.js

Actually, that might not be the only change you need to make.