Marked is not a function

Tell us what’s happening:
I’m trying to do the markdown previewer challenge and i’m currently being hit with “marked is not a function” when i try to parse the markdown text.

Any help would be appreciated, I did import the marked library but as it’s my first time using something like this i’m not sure if i’ve done it right.

Your code so far

codepen link:

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

Challenge: Build a Markdown Previewer

Link to the challenge:


You do not need to import anything on codepen, just add everything you need in pen settings or with link/script tags in html

Yeah i added it in the js settings, I just have no idea why marked isnt working :frowning:

I don’t see that here though. This is where you are supposed to add react and marked.

1 Like

Just added it there, had previously added it in the npm box below. Deleted all that and now it works :grin: thank you!!!


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