Math
LaTeX renders at build time with KaTeX, using the same $…$ and $$…$$ syntax Obsidian uses. No plugin, no client-side JavaScript: the deploy ships plain HTML plus a stylesheet.
Inline
Written as The set $\{x \in \mathbb{N} : x < n\}$ has $n$ elements., this renders as:
The set has elements.
Display
A $$…$$ block on its own lines becomes a centred display equation:
Multi-line environments work too:
Notes
- Math parses before emphasis, so the underscores in
$a_i + b_j$stay subscripts instead of turning into italics: . - Math inside a fenced code block is left alone, so you can document the syntax without it rendering.
- The KaTeX stylesheet and its fonts ship only to vaults that contain math.