feat: switch to svelte-markdown

This commit is contained in:
Xylight committed 2024-08-02 12:18:43 -07:00
1 parent 2b642b0926
commit 98a899c596
27 files changed
+510 -139

No files matched your search

@@ -0,0 +1,20 @@
<script lang="ts">
export let depth: number = 0
export let raw: string | undefined = undefined
</script>
{#if depth === 1}
<h1 class="font-bold text-4xl"><slot></slot></h1>
{:else if depth === 2}
<h2 class="font-bold text-3xl"><slot></slot></h2>
{:else if depth === 3}
<h3 class="font-bold text-2xl"><slot></slot></h3>
{:else if depth === 4}
<h4 class="font-semibold text-xl"><slot></slot></h4>
{:else if depth === 5}
<h5 class="font-semibold text-lg"><slot></slot></h5>
{:else if depth === 6}
<h6 class="font-semibold text-base"><slot></slot></h6>
{:else}
{raw}
{/if}