refac: more robust mermaid chart rendering
This commit is contained in:
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 ?? '')}
|
||||
|
||||
Reference in new issue
Block a user