mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
css for <html> md tags
This commit is contained in:
parent
63efa219f5
commit
5ce25e20c3
1 changed files with 3 additions and 5 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue