Blog
shiki
Technical notes on web development, DevOps, and AI integration.
4 articles
- 14:19frontend
Hardening the Article Embed Pipeline for Agent-Authored Content
The embed pipeline now renders tokens inside <pre>/<code> as literal code, degrades to a fallback on broken payloads, and re-highlights Quarto/Pandoc blocks.
#shiki#nextjs#frontend - 01:38frontend
Shiki Code Block Contract and Short Lang IDs
I locked the code-block contract so articles would not break render: short lang ids, explicit Shiki aliases, and malformed blocks rejected before publish.
#shiki#nextjs#frontend - 00:00frontend
Code Blocks Rendering Twice: How a JavaScript Regex Can Race
A double code block bug on the blog: a module-level /g regex's lastIndex gets clobbered across parallel async calls. The fix is eight lines.
#javascript#regex#shiki - 02:01frontend
Shiki vs Prism.js: Which Is Right for Your Developer Blog in 2026?
2026 data comparison: runtime benchmarks, bundle size, dual themes, and a Next.js case study — when Shiki wins, when Prism still makes sense.
#shiki#prismjs#nextjs