diff --git a/src/lib/components/chat/Messages/CitationsModal.svelte b/src/lib/components/chat/Messages/CitationsModal.svelte index 078c963db..61f274ffe 100644 --- a/src/lib/components/chat/Messages/CitationsModal.svelte +++ b/src/lib/components/chat/Messages/CitationsModal.svelte @@ -148,13 +148,18 @@
- {#if document.metadata?.html} - {@html document.document} - {:else} - {document.document} - {/if} -+ {#if document.metadata?.html} + + {:else} +
+ {document.document} ++ {/if} {#if documentIdx !== mergedDocuments.length - 1}