Jansen Nye
← All writing

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 A=softmax ⁣(QKdk)A = \operatorname{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right), and display math gets its own block:

L(θ)=tlogpθ(xtx<t)\mathcal{L}(\theta) = -\sum_{t} \log p_\theta(x_t \mid x_{<t})

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.0
0.580
z=1.0
0.214
z=0.5
0.130
z=-0.5
0.048
z=-1.0
0.029

Everything above the island is static HTML; only the island ships JavaScript.