Markdown previewer not passing test 5-6

Hey all, can someone please help explain why my code isn’t passing tests 5-6 (I think getting it to pass test 5 will also correct test 6). I don’t know why the marked library isn’t giving the output of

for my code block. I set up a repository on GitHub, so here’s a link

Look closely at the red error messages:

write some markdown representing a codeblock, i.e. <pre><code>...</code></pre> : expected false to be true

#preview does not contain at least one <pre> : expected 0 to be at least 1

I’m aware that it’s missing the pre and code, but I don’t understand why the marked library is giving me those for my output

my understanding is that using the marked library, it seeing the backticks, it should parse and give me the output for pre and code elements

Or am I way off the mark with my assumption?

I think you’ll have better luck if you put the triple backticks on a line of their own.

Yup, that did it. These small oversights can really wear on a guy, I was stuck for DAYS trying to figure out what was wrong. Thanks for the outside perspective, it’s really appreciated.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.