markdown-to-jsx
markdown-to-jsx copied to clipboard
\n character not converted to newline while rendering
This is my sample code const str = '# Heck Yes\n\nThis is great!'
<Markdown options={{ wrapper: 'article' }}>
{str}
</Markdown>;
rendered output

hey @quantizor, any updates on this?
Try String.raw https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw
This worked for me