When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
\[x_1 = {-b + \sqrt{b^2-4ac} \over 2a}\] \[x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag\]需要在 _config.yml 或文章 front matter 中设置 mathjax: true 才能启用 MathJax。
启用 MathJax 后,可以设置 mathjax_autoNumber: true 自动为公式编号;如果某个公式不需要编号,可使用 \notag 或 \nonumber。
markdown:
When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are
$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$
$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$
front matter:
---
...
mathjax: true
mathjax_autoNumber: true
---