css for <html> md tags

This commit is contained in:
Andrew Pareles 2025-02-06 03:10:07 -08:00
parent 63efa219f5
commit 5ce25e20c3

View file

@ -188,16 +188,14 @@ const RenderToken = ({ token, nested = false, noSpace = false }: { token: Token
</>
if (nested)
return contents
return <p className={`${noSpace ? '' : 'my-4'} leading`}>{contents}</p>
return <p className={`${noSpace ? '' : 'my-4'}`}>{contents}</p>
}
if (t.type === "html") {
return (
<div className={`bg-void-bg-2 p-4 rounded-lg ${noSpace ? '' : 'my-4'} font-mono text-sm`}>
<div>{`<html>`}</div>
<p className={`${noSpace ? '' : 'my-4'}`}>
{t.raw}
<div>{`</html>`}</div>
</div>
</p>
)
}