- Context Components
- Math
Context Components
Math
Write inline and display equations using LaTeX-style math syntax.
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, .
For a right triangle, $a^2 + b^2 = c^2$.
Display example
$
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.
