Updated dates from git, and page-data explored
Explored mdsvex's page-data plugin against every post: its reading time matched ours on 121 of 175 files (it skips code, ours counts it on purpose), and its…
12 entries with this tag.
Explored mdsvex's page-data plugin against every post: its reading time matched ours on 121 of 175 files (it skips code, ours counts it on purpose), and its…
Code blocks that run. svelte run makes the block a module the page imports; markdown/Pre.svelte draws its component above its code, in a region named "Live…
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]…
A plain {expression} is allowed in posts again. It runs when the site is built and again in the reader's browser, and sees the frontmatter as metadata…
Lighthouse on five pages of both builds (main and mdsvex), mobile, median of three runs: accessibility, best practices and SEO 100 on both, no layout shift…
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…
The CMS preview compiles each post in the browser the way the build does: mdsvex/compile with the build's options (src/lib/markdown/options.ts), then Svelte's…
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…
Replaced mdsvex's Prism with Shiki, passed as highlight.highlighter in the markdown() plugin. One highlighter is shared by every file, and each language loads…
Added MarkdownLayout.svelte, passed to mdsvex's compile as layout. It wraps every .md file (posts and Devlog entries) and only renders children.
Picked mdsvex 0.12.8 (stable) to render the markdown bodies. The 1.0.0-next rewrite is still a prerelease.