Markdown Challenge Issues

I’m having serious issues getting the any solution for this challenge to work and I have no clue why. I have literally gotten worked through code of others and watched hours of videos trying to figure out what I am doing wrong, changing my code tons of times in the process. I was even desperate enough to copy the examples code and even that came up with 1 of 8 tests complete despite the same test being run at 8 of 8 in the example.
Just not sure what is going on at this point.

Your browser information:

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

Challenge: Build a Markdown Previewer

Link to the challenge:

Hey there! Welcome to the forums :slightly_smiling_face:

Could you share the code you’re working on?

In honesty, my frustration led me to deleting all the code I worked hours on just to copy the examples code just to see if it worked. It didn’t, but here is the link if you wanted to see if I somehow messed up the copy and paste method.

If things aren’t working when you think they should, one of the first places you should look is in the console for error messages. If you do you will see that it is telling you that marked is not defined, which means you aren’t including the marked library. If I remember correctly, you don’t want to use the newest version, use the version that the FCC demo uses instead:

https://cdnjs.cloudflare.com/ajax/libs/marked/2.0.3/marked.min.js

After you include that then you will get an error message about Prism not being defined, which means you need to add the prism library to your project. You can just search for prism in codepen and add the one they suggest.

Once I add these two libraries then things start to work.

1 Like