1. Context Components
  2. Math

Use dollar signs for inline math and double dollar signs for a separate equation. DocsAlot renders supported expressions with KaTeX.

​
Inline example

For a right triangle, a2+b2=c2a^2 + b^2 = c^2.

For a right triangle, $a^2 + b^2 = c^2$.

​
Display example

E=mc2E = mc^2
$
E = mc^2
$

Use supported math commands rather than HTML or executable content. Rendering uses untrusted mode with bounded expansion; it is not a full LaTeX document processor. Preview equations before publishing, especially long expressions on narrow screens.

Some CLI preview versions parse braces in complex equations as MDX expressions. If an equation fails to preview, simplify it and check your authoring tool’s math support before publishing. The examples on this page avoid that compatibility issue.

​
Desktop example

Inline Pythagorean equation and a separate mass-energy equation

Inline and display expressions use the same math renderer.