refac: latex
This commit is contained in:
@@ -37,10 +37,7 @@
|
||||
</del>
|
||||
{:else if token.type === 'inlineKatex'}
|
||||
{#if token.text}
|
||||
<KatexRenderer
|
||||
content={revertSanitizedResponseContent(token.text)}
|
||||
displayMode={token?.displayMode ?? false}
|
||||
/>
|
||||
<KatexRenderer content={revertSanitizedResponseContent(token.text)} displayMode={false} />
|
||||
{/if}
|
||||
{:else if token.type === 'text'}
|
||||
{token.raw}
|
||||
|
||||
@@ -116,6 +116,13 @@
|
||||
displayMode={token?.displayMode ?? false}
|
||||
/>
|
||||
{/if}
|
||||
{:else if token.type === 'blockKatex'}
|
||||
{#if token.text}
|
||||
<KatexRenderer
|
||||
content={revertSanitizedResponseContent(token.text)}
|
||||
displayMode={token?.displayMode ?? false}
|
||||
/>
|
||||
{/if}
|
||||
{:else if token.type === 'space'}
|
||||
{''}
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user