Disable toc in non iframe preview as well

This commit is contained in:
thiloho
2024-08-24 20:46:10 +02:00
parent 891cdb46c8
commit b7601f46bb

View File

@@ -1,6 +1,7 @@
<script lang="ts"> <script lang="ts">
import type { Snippet } from "svelte"; import type { Snippet } from "svelte";
import { md } from "$lib/utils"; import { md } from "$lib/utils";
import { page } from "$app/stores";
const { const {
id, id,
@@ -56,7 +57,7 @@
{#if fullPreview} {#if fullPreview}
<iframe src={previewContent} title="Preview"></iframe> <iframe src={previewContent} title="Preview"></iframe>
{:else} {:else}
{@html md(previewContent)} {@html md(previewContent, Object.keys($page.params).length > 1 ? true : false)}
{/if} {/if}
</div> </div>