refac: more robust mermaid chart rendering

This commit is contained in:
Timothy J. Baek committed 2024-08-14 21:16:07 +02:00
1 parent 609a42c29c
commit 9435d2044a
3 files changed
+33 -16

No files matched your search

@@ -26,7 +26,7 @@
</svelte:element>
{:else if token.type === 'code'}
<CodeBlock
{id}
id={`${id}-${tokenIdx}`}
{token}
lang={token?.lang ?? ''}
code={revertSanitizedResponseContent(token?.text ?? '')}