My code may not be the best (just realized that I should be using ternary operators to set classNames), but I can confirm that the page does work on my local machine. It used to work on codepen too, which is how I submitted the project with all tests passing. Now, it no longer does.
Codepen tells me that
marked is not a function on line 106. But I don’t understand how to fix this. Especially since I’ve already added the external marked script and especially because it worked just fine before.