Help a newbie to use marked library

User Story #4: When I enter GitHub flavored markdown into the #editor element, the text is rendered as HTML in the #preview element as I type ***(HINT: You don’t need to parse Markdown yourself - you can import the Marked library for this: https://cdnjs.com/libraries/marked). ***

How can i use this library?

link to the project page: https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-markdown-previewer

Copy the script tag for the library from the https://cdnjs.com/libraries/marked page and add it to your html body. Then use window.marked inside your app. See the documentation at https://marked.js.org/

1 Like

Thanks mate for the answer, i’ve already used it by installing it with npm install marked, but you showed me another way thank you!

1 Like