Components in posts, as directives
Our own directives are an mdsvex plugin bundle (src/lib/markdown/directives-plugin.ts) with their components in src/lib/markdown/directives/: :kbd[Ctrl+B]…
12 entries with this tag.
Our own directives are an mdsvex plugin bundle (src/lib/markdown/directives-plugin.ts) with their components in src/lib/markdown/directives/: :kbd[Ctrl+B]…
Code blocks are highlighted by twinkleplop (MIT, by pngwn) instead of Shiki. Each token gets a class (tok keyword) instead of an inline style; global.css maps…
Posts and Devlog entries are compiled by mdsvex 1.0 again (two weeks after svelte-markdown replaced 0.12). The reason: components and live demos in posts…
Compared first: rendered all 262 posts and entries with svelte-markdown and diffed every block (text, inline tags, heading ids, links, images, code) against…
Compared three ways to get a CMS: build our own, Sveltia CMS or TinaCMS (design/cms-study.md). Tina was out: its images must live in static/, it has no…
Fenced-block components: a code block whose language is a component name, with YAML fields as its body, becomes that component. Anywhere else (Obsidian…
Callouts: a blockquote that starts with [!type] becomes an <aside class="callout"> with an icon and a title. It's the syntax GitHub ("alerts") and Obsidian…
A new fenced-block component, yt : src (any YouTube link shape), title, an optional thumbnail (a file next to the post) and caption. It renders a card with…
Picked mdsvex 0.12.8 (stable) to render the markdown bodies. The 1.0.0-next rewrite is still a prerelease.
Videos next to a post, written as HTML in the markdown (<video>, <source>, <track>, poster). The markdown step turns every ./ src or poster into an import, so…
Moved every post, draft and Devlog entry into a folder with its own name (<slug>/<slug>.md), 95 files with git mv, so their images can sit next to them. The…
Headings in markdown have ids now. rehype-slug gives every heading an id from its text (## The base path → #the-base-path, a repeated one gets -1), and…