add markdown formatting with code support

This commit is contained in:
2026-09-01 11:19:13 +00:00
parent 4822125787
commit 0994f31281
7 changed files with 93 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import { resolve } from '$app/paths';
import 'highlight.js/styles/github-dark.css';
let { data } = $props();
</script>
@@ -17,5 +18,7 @@
{/if}
</div>
<p class="mb-6 text-sm text-gray-500">{data.blogArticle.createdAt?.toDateString()}</p>
<div class="whitespace-pre-wrap">{data.blogArticle.content}</div>
<div class="prose prose-neutral max-w-none">
{@html data.contentHtml}
</div>
</article>