Render legacy callout shortcodes, add code syntax highlighting

Converts the note/tip/warning/danger `{% <tag> %}...{% </tag> %}` blocks
the posts→writings migration script left untranslated into styled
.callout markup (toml-content-loader.ts's renderCallouts(), styled in
global.css to match the new design system).

Also wires shiki into the same markdown pipeline for fenced code block
highlighting (github-light/github-dark, switched by the same
[data-theme]/prefers-color-scheme pattern tokens.css already uses).

Also records the Three.js centerpiece's perf budget check in TODO.md:
scene is trivially light (well under 10k triangles, 100+fps uncapped);
the ~130KB gzip payload is three.js core itself, not a tree-shaking gap
(verified named imports change nothing - sideEffects:false already lets
Rollup shake fully), and the script is a deferred module that doesn't
block first paint. No code changes needed there.
This commit is contained in:
2026-09-01 09:14:29 +03:00
parent c035aca132
commit 74a7f80b29
5 changed files with 202 additions and 5 deletions
+1
View File
@@ -23,6 +23,7 @@
"astro": "^7.2.9",
"marked": "^18.0.11",
"pagefind": "^1.5.2",
"shiki": "^4.4.3",
"smol-toml": "^1.8.0",
"three": "^0.185.1"
},