mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 04:54:12 +00:00
refac
This commit is contained in:
parent
2e7af7bdbf
commit
7b9b0f23fe
@ -36,7 +36,7 @@
|
|||||||
{:else if token.type === 'link'}
|
{:else if token.type === 'link'}
|
||||||
{#if token.tokens}
|
{#if token.tokens}
|
||||||
<a href={token.href} target="_blank" rel="nofollow" title={token.title}>
|
<a href={token.href} target="_blank" rel="nofollow" title={token.title}>
|
||||||
<svelte:self id={`${id}-a`} tokens={token.tokens} />
|
<svelte:self id={`${id}-a`} tokens={token.tokens} {onSourceClick} />
|
||||||
</a>
|
</a>
|
||||||
{:else}
|
{:else}
|
||||||
<a href={token.href} target="_blank" rel="nofollow" title={token.title}>{token.text}</a>
|
<a href={token.href} target="_blank" rel="nofollow" title={token.title}>{token.text}</a>
|
||||||
@ -45,11 +45,11 @@
|
|||||||
<Image src={token.href} alt={token.text} />
|
<Image src={token.href} alt={token.text} />
|
||||||
{:else if token.type === 'strong'}
|
{:else if token.type === 'strong'}
|
||||||
<strong>
|
<strong>
|
||||||
<svelte:self id={`${id}-strong`} tokens={token.tokens} />
|
<svelte:self id={`${id}-strong`} tokens={token.tokens} {onSourceClick} />
|
||||||
</strong>
|
</strong>
|
||||||
{:else if token.type === 'em'}
|
{:else if token.type === 'em'}
|
||||||
<em>
|
<em>
|
||||||
<svelte:self id={`${id}-em`} tokens={token.tokens} />
|
<svelte:self id={`${id}-em`} tokens={token.tokens} {onSourceClick} />
|
||||||
</em>
|
</em>
|
||||||
{:else if token.type === 'codespan'}
|
{:else if token.type === 'codespan'}
|
||||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<br />
|
<br />
|
||||||
{:else if token.type === 'del'}
|
{:else if token.type === 'del'}
|
||||||
<del>
|
<del>
|
||||||
<svelte:self id={`${id}-del`} tokens={token.tokens} />
|
<svelte:self id={`${id}-del`} tokens={token.tokens} {onSourceClick} />
|
||||||
</del>
|
</del>
|
||||||
{:else if token.type === 'inlineKatex'}
|
{:else if token.type === 'inlineKatex'}
|
||||||
{#if token.text}
|
{#if token.text}
|
||||||
|
Loading…
Reference in New Issue
Block a user