Markdown preview project can´t pass test #4

My project is in here
preview-markdown
And I pass the required test minus the #4 for github flavored markdown.
I’m using react-markdown link for the project and the plugin remarkGfm for github flavored markdown, and when I type in #editor it seems to work just fine, however I cannot pass that specific test. And I’m a bit clueless as the reason for that. The plugin seems to work fine.

The preview id ends up on the wrong element and it can’t be passed down as a prop. If you use the syntax shown in the custom component example it will work.

https://github.com/remarkjs/react-markdown#use-custom-components-syntax-highlight

For the breaks you can use.

https://github.com/remarkjs/remark-breaks

Thanks, I’ll look into it and work it out. :crossed_fingers:

After some time I tried using marked as recommended on the challenge and the syntax proved to be simpler for my level so it works now, thanks for the help, it was thanks to the options you gave me that I ended up finding a solution in which you helped as well!

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