refac
This commit is contained in:
@@ -131,12 +131,9 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{:else if token.text.includes(`<source_id`)}
|
{:else if token.text.includes(`<source_id`)}
|
||||||
<Source {id} {token} onClick={onSourceClick} />
|
<Source {id} {token} onClick={onSourceClick} />
|
||||||
|
{:else if token.text.trim().match(/^<br\s*\/?>$/i)}
|
||||||
|
<br />
|
||||||
{:else}
|
{:else}
|
||||||
{@const br = token.text.match(/<br\s*\/?>/)}
|
{token.text}
|
||||||
{#if br}
|
|
||||||
<br />
|
|
||||||
{:else}
|
|
||||||
{token.text}
|
|
||||||
{/if}
|
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user