Markdown Previewer Story No. 5

Hello Fellow Campers.
I can’t pass this test:

I get an error when I try to add a markdown text for code blocks. the Error has a description like this:

write some markdown representing a codeblock, i.e.

: expected false to be true
AssertionError: write some markdown representing a codeblock, i.e.
: expected false to be true

here is my code (you can find the markdown text in ‘input’ state of the component (React is used for this project)

can you show me where the problem is? what can I do to make it work?
thanks in advance.

Try making the starting input string a template literal and make sure it contains valid markdown. One option is to borrow the starting markdown string from the example project.

1 Like