Back to journals
Loading article…
Journals
Short notes and snippets — too brief for a full blog post, worth writing down.
Back to journals
Back to journals
TIL
Converting TIL markdown to HTML in a server function keeps bundles small and syntax highlighting consistent.
Date published
## Server-side conversion Showdown + highlight.js run once per request. The client receives sanitized HTML previews in cards and full articles on detail pages. [!NOTE] Preview cards use `line-clamp` on the rendered HTML — no raw markdown over the wire.