编辑器中可以插入 MathJax 公式,行内公式请使用两个$
包裹公式,单行公式使用两个$$
。比如
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
效果是
一些其他的常用公式和符号:
1. 上标和下标 $a_{1}$ $x^{2}$ $y^{a_{1}}$
2. 开方 $\sqrt{x}$ $\sqrt[5]{x+1}$
3. 分数使用 $1\frac{1}{2}$ $\frac{1}{a^{5} + 1}$
4. 积分 $\sum_{i=1}^{n}$
更多用法可以参考 https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference