Open JBStepan opened 1 year ago
This is because of the indents in source
. It actually does render the HTML, but it's wrapped in <code>
tags because that's what it's parsed into (a code block).
If you change:
const source = `
# Hello World
This is a paragraph
`
to
const source = `
# Hello World
This is a paragraph
`
It will parse as intended.
I'm trying to display HTML from Markdown, but it never displays HTML it displays the raw Markdown text
My code:
What it displays