Front End Development Libraries Projects - Build a Markdown Previewer

Tell us what’s happening:
Describe your issue in detail here.

i don’t know what to do next
Your code so far

Your browser information:

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

Challenge: Front End Development Libraries Projects - Build a Markdown Previewer

Link to the challenge:

You need to use the parse method when using it as a script (Codepen settings).

marked.parse(input)

Or if you import the lib instead you can keep using it as you are now.

import { marked } from "https://cdn.skypack.dev/marked@4.0.19";

marked(input)

Docs and V4 change log

Thanks, it worked. All this while i thought i had imported marked library. Seems bizarre to me.

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