Markdown Features
Math Equations

Math

mdedit.ai renders TeX-style expressions with KaTeX.

Inline math

Wrap an expression in single dollar signs:

The area is $A = \pi r^2$.

Display math

Use double dollar signs for a centered block:

$$
\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$

Matrices and aligned equations use normal KaTeX environments:

$$
\begin{aligned}
f(x) &= x^2 + 2x + 1 \\
     &= (x + 1)^2
\end{aligned}
$$

If an expression does not render, check balanced braces, escaped Markdown characters, and whether the command is supported by KaTeX. See the KaTeX supported-functions reference (opens in a new tab) for the complete syntax.