Render LaTeX using KaTeX
Enable katex by adding katex = "true"
to the front matter
+++
katex = "true"
+++
It’s almost a dropin alternative to the mathjax solution,you should just choose one of them.
Inline math looks like this
This is text with inline math $\sum_{n=1}^{\infty} 2^{-n} = 1$
This is text with inline math $\sum_{n=1}^{\infty} 2^{-n} = 1$
and with math blocks:
$$
\sum_{n=1}^{\infty} 2^{-n} = 1
$$
$$ \sum_{n=1}^{\infty} 2^{-n} = 1 $$
This is using [ ] \\( \\)
code delimiters
math block:
[\sum_{n=1}^{\infty} 2^{-n} = 1]
Inline demo \(\int x^3 dx\)