Marked.js troubles

Marked.js troubles
0

#1

Tell us what’s happening:
I don’t really understand much about marked.js. It’s documentation is a bit thin, so I’ve been struggling through this project. I’ve got the basic concept for the tool started, but I can’t figure out how to implement marked in the way that I am attempting. My goal is to have marked receive a variable, instead of putting a string directly inside of marked('...')
here is a link to my codepen markdown previewer

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS aarch64 11151.59.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.94 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-markdown-previewer


#2

this is a screen shot of a piece of code from my markdown previewer project:

marked

I think, in your code you are displaying the returned value from marked.js directly as plain text, while you need to pass it as html to be displayed as html.

this is the problem in your code:

problem