Help…
Everything works fine until I insert the GitHub flavored markdown then my page just goes blank this is the 3rd attempt now. The same thing happens in visual studio code.
Hi @Shakes.
If you open the console you should see an error like:
Uncaught TypeError: marked is not a function
And looking at your code there’s this line:
const Previewer = ({ content }) => <div id="preview" dangerouslySetInnerHTML={{
__html: marked(content, { renderer: renderer})
}} />
What exactly is marked
supposed to be here? As the error in the console is saying, marked
is not a function.
Perhaps you wanted to write marked.parse()
?
Hope this helps
Thanks that helped, I’ve done it 3 different ways and every time I get to that point, I end up with a blank screen but it’s right now
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.