diff --git a/src/lib/components/Preview.svelte b/src/lib/components/Preview.svelte
index 0a1ffdb..6130feb 100644
--- a/src/lib/components/Preview.svelte
+++ b/src/lib/components/Preview.svelte
@@ -150,59 +150,12 @@
{#snippet sectionHeading(title: string, depth: number)}
- {#if $pharosInstance.isFloatingTitle(rootId)}
- {#if depth === 0}
-
- {title}
-
- {:else if depth === 1}
-
- {title}
-
- {:else if depth === 2}
-
- {title}
-
- {:else if depth === 3}
-
- {title}
-
- {:else if depth === 4}
-
- {title}
-
- {:else}
-
- {title}
-
- {/if}
- {:else}
- {#if depth === 0}
-
- {title}
-
- {:else if depth === 1}
-
- {title}
-
- {:else if depth === 2}
-
- {title}
-
- {:else if depth === 3}
-
- {title}
-
- {:else if depth === 4}
-
- {title}
-
- {:else}
-
- {title}
-
- {/if}
- {/if}
+ {@const headingLevel = Math.min(depth + 1, 6)}
+ {@const className = $pharosInstance.isFloatingTitle(rootId) ? 'discrete' : 'h-leather'}
+
+
+ {title}
+
{/snippet}
{#snippet contentParagraph(content: string, publicationType: string)}