more formatting for chunter message (#369)

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-11-25 12:10:18 +01:00 committed by GitHub
parent 1bde37f9b3
commit 5762ac7429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,14 @@
<code><svelte:self nodes={node.childNodes}/></code>
{:else if node.nodeName === 'BR'}
<br/>
{: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 === 'LI'}
<li><svelte:self nodes={node.childNodes}/></li>
{:else if node.nodeName === 'SPAN'}
<Person objectId={node.getAttribute('data-id')} title={node.getAttribute('data-label')} />
{:else}