Not passing User story #5 (Markdown Previewer)

Tell us what’s happening:

I have my editor with all of the elements asked for: H1, H2, lists etc but it still isn’t passing user story #5. I can’t figure out what I’ve missed.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36.

Challenge: Build a Markdown Previewer

Link to the challenge:

just below the failed user story there is this extra detail of why it is failing:

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

it seems the way you are doing is not recognised by the test

1 Like

it’s getting hung up on your code block…

It looks correct. but likel mentioned ^ something in the test is catching an error when it gets to the block.

here is an example to help clean your code some (in back ticks), no need for \n this route:

...
      text:
`
# A

## B

\` inline \`

\`\`\`
block
\`\`\`
`
1 Like

This did the trick! Looks so much better than my \n block too! :smiley: Thanks, both of you!