I’m trying to build a Markdown Previewer.
I don’t really know how to import the Marked library and try to google it.
I’m getting the Error Uncaught TypeError: marked is not a function.
Here is my code: https://codepen.io/undeba/pen/ExEeMdm
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:
Go to the JS panel in CodePen settings.
Scroll down to add packages.
Search marked.
I did that already. marked is imported but still not working.
It works with an older version https://cdnjs.cloudflare.com/ajax/libs/marked/2.0.3/marked.min.js
what do I need to change to use a new version?
I think there is something else wrong here but try
import { marked } from ...
system
Closed
February 11, 2023, 6:33am
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.