MathJax 数学公式渲染测试与用法

数学公式在GitBook中的不同渲染方式展示

GitBook数学公式语法示例

以下展示了如何在 GitBook 中使用 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}.$$

When a0a \ne 0, there are two solutions to (ax2+bx+c=0)(ax^2 + bx + c = 0) and they are x=b±b24ac2a.x = {-b \pm \sqrt{b^2-4ac} \over 2a}.

Last updated

Was this helpful?