fixes #480, fixes #482 (#507)

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-12-03 10:03:48 +01:00 committed by GitHub
parent eca130eb70
commit 5246bd769c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,12 +37,16 @@
<code><svelte:self nodes={node.childNodes}/></code>
{:else if node.nodeName === 'BR'}
<br/>
{:else if node.nodeName === 'HR'}
<hr/>
{:else if node.nodeName === 'H1'}
<h1><svelte:self nodes={node.childNodes}/></h1>
{:else if node.nodeName === 'H2'}
<h2><svelte:self nodes={node.childNodes}/></h2>
{:else if node.nodeName === 'UL'}
<ul><svelte:self nodes={node.childNodes}/></ul>
{:else if node.nodeName === 'OL'}
<ol><svelte:self nodes={node.childNodes}/></ol>
{:else if node.nodeName === 'LI'}
<li><svelte:self nodes={node.childNodes}/></li>
{:else if node.nodeName === 'SPAN'}