KaTeX (math)

Updated · View the entry on sijie.xyz ↗

Math rendering. StandMeet: remark-math → rehype-katex (katex ^0.16). Obsidian: MathJax.

Symmetry: MathJax ⊇ KaTeX, so writing the KaTeX-supported subset renders identically on both ends. $…$ inline / $$…$$ block; aligned / cases / bmatrix all work in both.

Watch out:

  • MathJax is a superset → a MathJax-only macro renders in Obsidian but breaks in StandMeet. Stay inside KaTeX's supported-functions list.
  • StandMeet runs escapeCurrencyDollars so $100 … $200 isn't parsed as math (fix fac9a5a).

Pipeline added in commit 51ab1c2.

Related notes