Browse Source

bring html back

Michael Poluektov 5 tháng trước cách đây
mục cha
commit
f3210ec7db
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/lib/components/chat/Messages/CitationsModal.svelte

+ 5 - 1
src/lib/components/chat/Messages/CitationsModal.svelte

@@ -149,7 +149,11 @@
 							{$i18n.t('Content')}
 						</div>
 						<pre class="text-sm dark:text-gray-400 whitespace-pre-line">
-							{document.document}
+							{#if document.metadata?.html}
+								{@html document.document}
+							{:else}
+								{document.document}
+							{/if}
 						</pre>
 					</div>