Fix h1/h2/h3 in inbox (#7570)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-12-27 14:38:21 +04:00 committed by GitHub
parent 7101c3524f
commit c25449d429
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,12 +62,6 @@
<LiteNodes {nodes} />
{:else if node.type === MarkupNodeType.horizontal_rule}
<!-- nothing-->
{:else if node.type === MarkupNodeType.heading}
{@const level = toNumber(node.attrs?.level) ?? 1}
{@const element = `h${level}`}
<svelte:element this={element}>
<LiteNodes {nodes} />
</svelte:element>
{:else if node.type === MarkupNodeType.code_block}
<p class="p-inline contrast" class:overflow-label={true} style:margin="0">
<NodeMarks