From cfa6cf2be2d1bdb5b7cb9a947cbc727fb9924c52 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sat, 11 Apr 2026 23:09:29 -0600 Subject: [PATCH] feat: style release changelog with color-coded sections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gives the GitHub-release-body markdown real typography on the /flash page: - `## [version]` becomes a bordered mono version heading - `### Added / Changed / Fixed / Removed / Deprecated / Security` render as uppercase section headers, color-coded per Keep-a-Changelog semantics (green / yellow / blue / red) - Nested bullet lists switch marker style (disc → circle → square) - Inline `code`, fenced `pre`, hr, strong, em, blockquote all styled - Proper vertical rhythm (line-height 1.65, section spacing) To colorize the section headers, `VersionSelector`.renderBody now post-processes marked's output to tag known h3 texts with a `data-section` attribute that CSS targets. Rules live in `src/styles/global.css` under `@layer base`, not in the Svelte component's ` diff --git a/src/styles/global.css b/src/styles/global.css index fb99c8f..336c581 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -70,4 +70,150 @@ padding: 1rem; font-size: 0.875rem; } + + /* Changelog typography (markdown rendered from GitHub release bodies). + Kept here rather than in VersionSelector.svelte because the Astro + + Svelte 5 build pipeline wasn't emitting the component's