|
@@ -148,13 +148,18 @@
|
|
<div class=" text-sm font-medium dark:text-gray-300 mt-2">
|
|
<div class=" text-sm font-medium dark:text-gray-300 mt-2">
|
|
{$i18n.t('Content')}
|
|
{$i18n.t('Content')}
|
|
</div>
|
|
</div>
|
|
- <pre class="text-sm dark:text-gray-400 whitespace-pre-line">
|
|
|
|
- {#if document.metadata?.html}
|
|
|
|
- {@html document.document}
|
|
|
|
- {:else}
|
|
|
|
- {document.document}
|
|
|
|
- {/if}
|
|
|
|
- </pre>
|
|
|
|
|
|
+ {#if document.metadata?.html}
|
|
|
|
+ <iframe
|
|
|
|
+ class="w-full border-0 h-auto rounded-none"
|
|
|
|
+ sandbox="allow-scripts allow-forms allow-same-origin"
|
|
|
|
+ srcdoc={document.document}
|
|
|
|
+ title={$i18n.t('Content')}
|
|
|
|
+ ></iframe>
|
|
|
|
+ {:else}
|
|
|
|
+ <pre class="text-sm dark:text-gray-400 whitespace-pre-line">
|
|
|
|
+ {document.document}
|
|
|
|
+ </pre>
|
|
|
|
+ {/if}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{#if documentIdx !== mergedDocuments.length - 1}
|
|
{#if documentIdx !== mergedDocuments.length - 1}
|