mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
fix: remove whitespace to improve typesetting for inline Markdown
This commit is contained in:
parent
893bfe9d3a
commit
9072959858
@ -44,13 +44,9 @@
|
|||||||
{:else if token.type === 'image'}
|
{:else if token.type === 'image'}
|
||||||
<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} {onSourceClick} /></strong>
|
||||||
<svelte:self id={`${id}-strong`} tokens={token.tokens} {onSourceClick} />
|
|
||||||
</strong>
|
|
||||||
{:else if token.type === 'em'}
|
{:else if token.type === 'em'}
|
||||||
<em>
|
<em><svelte:self id={`${id}-em`} tokens={token.tokens} {onSourceClick} /></em>
|
||||||
<svelte:self id={`${id}-em`} tokens={token.tokens} {onSourceClick} />
|
|
||||||
</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 -->
|
||||||
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
|
||||||
@ -64,9 +60,7 @@
|
|||||||
{:else if token.type === 'br'}
|
{:else if token.type === 'br'}
|
||||||
<br />
|
<br />
|
||||||
{:else if token.type === 'del'}
|
{:else if token.type === 'del'}
|
||||||
<del>
|
<del><svelte:self id={`${id}-del`} tokens={token.tokens} {onSourceClick} /></del>
|
||||||
<svelte:self id={`${id}-del`} tokens={token.tokens} {onSourceClick} />
|
|
||||||
</del>
|
|
||||||
{:else if token.type === 'inlineKatex'}
|
{:else if token.type === 'inlineKatex'}
|
||||||
{#if token.text}
|
{#if token.text}
|
||||||
<KatexRenderer content={token.text} displayMode={false} />
|
<KatexRenderer content={token.text} displayMode={false} />
|
||||||
|
Loading…
Reference in New Issue
Block a user