mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
+
This commit is contained in:
parent
5ce25e20c3
commit
4ffd269db5
1 changed files with 5 additions and 3 deletions
|
|
@ -186,9 +186,11 @@ const RenderToken = ({ token, nested = false, noSpace = false }: { token: Token
|
|||
<RenderToken key={index} token={token} />
|
||||
))}
|
||||
</>
|
||||
if (nested)
|
||||
return contents
|
||||
return <p className={`${noSpace ? '' : 'my-4'}`}>{contents}</p>
|
||||
if (nested) return contents
|
||||
|
||||
return <p className={`${noSpace ? '' : 'my-4'}`}>
|
||||
{contents}
|
||||
</p>
|
||||
}
|
||||
|
||||
if (t.type === "html") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue