Mathematics
DocSprout bundles the MIT-licensed KaTeX runtime, stylesheet and fonts with every generated site. Math works offline, in GitHub Pages, and in downloaded documentation archives—no CDN is used.
Inline math
Use a single dollar delimiter:
Euler's identity is $e^{i\pi} + 1 = 0$.
Display math
Use a fenced math block for the clearest source:
$$ delimiters are also supported:
The same common LaTeX syntax renders on GitHub, which uses MathJax. KaTeX and MathJax do not have identical macro coverage; keep project notation within the well-supported KaTeX subset for consistent repository and site rendering.
KaTeX source and licence are included at src/docsprout/vendor/katex/.