How can I render parsed markdown inside html

Hello!

We are using prosemirror as our text editor and I need to render parsed markdown inside my component and I am not sure how to do that.

const parser = new MarkdownParser(
schema,
markdownit('default', { html: false }).use(checkboxPlugin),
{...})

const parsed = parser.parse(content)
// Want to render this `parsed` object in html.

i.e: document.getElementById('content').appendChild(parsed)

Can someone please help me with this! This is pretty urgent.

Thanks in advance.

This seems more of a markdown-it question.