Math
Inline math
TeX-style inline math
A TeX equation `2 \pi r^2`{tex}.AsciiMath inline math
An AsciiMath equation `2 pi r^2`{asciimath}.MathML inline math
A MathML equation `<math><mrow><mn>2</mn><mi>π</mi><msup><mi>r</mi><mn>2</mn></msup></mrow></math>`{mathml}.Block math
TeX block math
$$ ... $$
$$
2 \pi r^2
$$AsciiMath block math
```asciimath
2 pi r^2
```MathML block math
```mathml
<math display="block"><mrow><mn>2</mn><mi>π</mi><msup><mi>r</mi><mn>2</mn></msup></mrow></math>
```Choosing a math format
Use TeX if you already write mathematics in LaTeX-style syntax. Use AsciiMath if you prefer a lighter plain-text syntax. Use MathML if you need an explicit XML representation of the math structure.