瀏覽代碼

refac: html rendering

Timothy Jaeryang Baek 5 月之前
父節點
當前提交
c700126c17
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte

+ 1 - 1
src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens.svelte

@@ -31,7 +31,7 @@
 		{:else if token.text.includes(`<source_id`)}
 			<Source {id} {token} onClick={onSourceClick} />
 		{:else}
-			{token.text}
+			{@html html}
 		{/if}
 	{:else if token.type === 'link'}
 		{#if token.tokens}