Markdown Preview Project

I believe I have done everything i need to do to pass the Markdown Preview Project for the Front End Deve Cert. However I am not sure what the issue is exactly, what am I missing?

Here is a LINK to the project.

If anyone can help I would appreciate it. Cheers

The marked import isn’t working. Remove the import and use the “Add External Scripts/Pens” to add it instead. Then use the parse method with it marked.parse()

awesome it worked, thanks a bunch… but how did you know to do that?

Because I have read the docs including the release notes for version 4

https://github.com/markedjs/marked/releases/tag/v4.0.0

  • When using marked in a script tag use marked.parse(...) instead of marked(...)

When you use the “Add External Scripts/Pens” on Codepen it is added using a script tag.

1 Like

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