When you use a standard Text component, there is an option “HTML” that renders the contents as HTML.
Is there a way to do this for a code component? I have a component that outputs HTML, but it is rendering text with html tags
if(contentObject !== null || typeof contentObject === 'string') {
// replace markdown with html
const md = new Remarkable();
content = md.render(contentObject);
}
return <div className={className + ' text-left w-full py-1'}>{content}</div>;