I am using markdown-it to parse markup documents. My code is as follows:
import React from 'react';
import Markdown from 'markdown-it';
const md = new Markdown();
export default () => {
return (
<div>
{
md.render('# markdown-it rulezz!')
}
</div>
);
}
The h1 being returned is correct, but the output is not registering as an h1; the h1 is considered part of the string - it's not being recognized as a tag. See attachment. Can someone please tell me what I'm doing wrong here? Thanks!

__dangerouslySetInnerHTML?