Code copy test
Verifies that fenced code blocks render with a copy button and follow light/dark mode.
A Python block:
def greet(name: str) -> str: return f"hello, {name}"
print(greet("world"))A shell block (expressive-code renders these in a terminal frame by default):
docker compose up -ddocker compose logs -f caddyA TypeScript block with a filename, which expressive-code uses as the frame title:
export function setMode(mode: 'light' | 'dark') { document.documentElement.dataset.mode = mode;}