Marked is not a Function- Markdown Previewer

Tell us what’s happening:
Hello,
I have been working on markdown previewer challenge for two days now and I keep getting an error message that “marked is not a function”. I have included all the necessary links, but it is still not working. I dont know what could be the problem.
Kindly help.
Describe your issue in detail here.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36

Challenge: Build a Markdown Previewer

Link to the challenge:

I ran into this error before. Try using a different version of marked.

I just tried it and it worked. Thank you.

FYI, you need to use marked.parse() with version 4 (when using via script tag).

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.