feat: render subheadlines as inline markdown
Deploy / verify (push) Successful in 58s
Deploy / deploy (push) Successful in 1m8s

Subheadlines in page headers and post cards support inline markdown
(bold, italic, links) via marked.parseInline.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Peter Meier
2026-06-04 10:11:07 +02:00
parent 363d4edb76
commit 80ee877ae0
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
import Card from "./Card.svelte";
import { getPostEventInfo } from "$lib/blog-utils";
import { useTranslate, T } from "$lib/translations";
import { marked } from "$lib/markdown-safe";
const t = useTranslate();
@@ -119,7 +120,7 @@
</h5>
{#if post.subheadline}
<div class="text-xs line-clamp-2 mb-1">
{post.subheadline}
{@html marked.parseInline(post.subheadline)}
</div>
{/if}
{#if post.excerpt}