nuartz renders LaTeX math expressions using remark-math and rehype-katex. Math is typeset at build time — no JavaScript required in the browser beyond the KaTeX CSS.
Inline math
Wrap an expression in single dollar signs $...$ for inline math.
The famous identity is $e^{i\pi} + 1 = 0$.
Renders as: The famous identity is .
Another example: the energy-mass equivalence is perhaps the most recognisable equation in physics.
Block math
Wrap an expression in double dollar signs $$ on their own lines for a centred block.
$$
\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}
$$
Aligned equations
Use the aligned environment for multi-line derivations:
Matrices
Dollar signs in text
A lone $ followed by a space is safe and will not trigger math. Only $...$ (no spaces after opening / before closing $) is parsed as inline math.
I have $5 and you have $10.
Renders as: I have 10.
If you need a literal $ next to text without spaces, escape it with \$.
Supported functions
KaTeX supports a large subset of LaTeX. See the KaTeX supported functions reference for the full list.
For chemistry equations, KaTeX ships a mhchem extension. Enable it by importing katex/contrib/mhchem in the nuartz build configuration.
Related
- Authoring Content — full Markdown syntax reference
- Syntax Highlighting — code block highlighting
- Mermaid Diagrams — render diagrams in Markdown