使用前需要在 Markdown 文件开头加入

_posts/xxx.md
1
2
3
---
katex: true
---

$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$

_posts/xxx.md
1
$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$