Math

MDU renders GitHub-compatible math syntax to static SVG while it builds the site. The pages contain the formulas directly, so browsers need no JavaScript math renderer or font service.

Inline math

Wrap an expression in single dollar signs:

Markdown
The area of a circle is $A = \pi r^2$.

The area of a circle is .

Display math

Use double dollar signs for a centered formula:

Markdown
$$
\int_0^1 x^2\,dx = \frac{1}{3}
$$

Fenced math

GitHub's math code fence renders a display formula as well:

Markdown
```math
\sum_{i=1}^{n} i
```

Compatibility

  • MDU supports the three forms shown above: $...$, $$...$$, and fenced math blocks. GitHub's additional inline delimiter form is not supported.
  • The .NET LaTeX renderer implements a subset of LaTeX math commands, not a complete LaTeX engine. If an expression cannot be rendered, the page shows its TeX source.
  • Formulas become inline SVG paths with theme-aware colors. The renderer's licenses are listed in the packaged THIRD-PARTY-NOTICES.md.

References

Search documentation

Press Esc to close

Start typing to search the documentation.

Media settings

Choose which providers may load videos automatically across this site. Your choices are stored in this browser.