notes

Markdown, code, and math

A short example of the writing tools available on this site.

Folded paper sculpture in soft light

Markdown is the writing format here. It keeps prose close to the page while still handling code, links, lists, and equations.

Code blocks

Fenced code blocks are syntax-highlighted during every build. Inline code uses JavaScript as the default language.

const mean = (values) => values.reduce((sum, value) => sum + value, 0) / values.length;

console.log(mean([2, 4, 8]));

Inline code works too: mean(values).

Math

Write inline math with dollar signs: E=mc2E = mc^2. Display equations use double dollar signs:

01x2dx=13\int_0^1 x^2 \, dx = \frac{1}{3}

The KaTeX renderer turns that LaTeX notation into static HTML while the site builds. There is no client-side math compiler to load.

Think I'm wrong? Tell me about it. Get in touch