From 9025e9dbb1fc9ff3e0f836677be591ca1e1eb588 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 16 Aug 2024 15:44:18 +0200 Subject: [PATCH] fix: pseudo html rendering issue --- src/lib/components/chat/Messages/MarkdownInlineTokens.svelte | 2 +- src/lib/components/chat/Messages/MarkdownTokens.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte b/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte index aa3f0c8db..9fca021f9 100644 --- a/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte +++ b/src/lib/components/chat/Messages/MarkdownInlineTokens.svelte @@ -16,7 +16,7 @@ {unescapeHtml(token.text)} {:else if token.type === 'html'} {@const html = DOMPurify.sanitize(token.text)} - {#if html} + {#if html && html.includes('