Placeholder: math, code, and islands
August 18, 2026
A throwaway post that exercises KaTeX, syntax highlighting, and a React island.
This post exists so you can see the layout working before you have real content. Delete it once you’ve written something.
Math
Inline math renders with KaTeX: the attention pattern for a single head is , and display math gets its own block:
Code
Fenced code blocks are highlighted by Shiki at build time — no client-side JavaScript, and the theme follows dark mode:
import torch
def attention(q, k, v):
scores = q @ k.transpose(-2, -1) / k.shape[-1] ** 0.5
return scores.softmax(dim=-1) @ v
Islands
React components can be imported into any MDX post and hydrated with
client:load. This one is a trivial softmax-temperature demo — swap in real
visualizations later:
z=2.00.580
z=1.00.214
z=0.50.130
z=-0.50.048
z=-1.00.029
Everything above the island is static HTML; only the island ships JavaScript.