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