Markdown can't pass test 4

Hello there.

Do you have a question?

If so, please edit your post to include it.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

#preview’s only children should be those rendered by marked.js : expected '<p></p>’ to equal “”

<div id='preview'>
  <p dangerouslySetInnerHTML = {{
    __html: marked(this.state.input)

Remove the p element and just have dangerouslySetInnerHTML on the #preview div.

sorry, the question was in the title of the post " Markdown can’t pass test 4" and the question was supposed to be “why”

when i put <p></p> in my markdwon screen, it comes up with the exact same result as the sample code provided in the test case. not sure why mine is not passing… nevertheless, neither of them end up with ‘’ instead theres a break between them…

is what it looks like

@lasjorg that did the trick! thanks !

That would be a great amount of detail to actually put in the post.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Thanks Jeremy i’ll do better next time.
Thanks J… i’ll remember that!

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