KaTeX can be used to generate complex math formulas. It supports in-line math using the \\( ... \\)
delimiters, like this: \( E = mc^2 \). By default, it does not support in-line delimiters $...$
because those occur too commonly in typical webpages. It supports displayed math using the $$
or \\[...\\]
delimiters, like this:
Formula 1: $$ \phi = \frac{(1+\sqrt{5})}{2} = 1.6180339887\cdots $$
Formula 2: (same formula, different delimiter) \[ \phi = \frac{(1+\sqrt{5})}{2} = 1.6180339887\cdots \]
Additional details can be found on GitHub or on the Wiki.
[Read More]