Markdown guide · Code, tables, diagrams & math
Math equations
Write formulas in LaTeX: $…$ in a sentence, $$ … $$ on their own lines.
Math is written in LaTeX, the notation scientists and engineers use. Put a formula between single dollar signs to keep it in the sentence:
The area of a circle is $\pi r^2$, and $e^{i\pi} + 1 = 0$.The area of a circle is , and .
For an equation on its own line, put $$ on the lines above and below it:
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$This is the notation GitHub, Obsidian, VS Code, Jupyter and Pandoc use, so your formulas show up there too. A code block with the language math works as well.
- Click Insert equation (Σ) on the toolbar to write a formula with a live preview. Choose On its own line or In the sentence.
- The buttons above the LaTeX box add fractions, roots, sums, integrals, matrices, Greek letters and symbols. Select some LaTeX first to put it inside the fraction, root or brackets you click.
- Press Tab to jump to the next empty
{}the buttons leave behind. - Click a formula (or select an equation and press Enter) to edit it. You can also move the cursor into a formula in the sentence and edit the LaTeX in place.
- Typing
$, a formula and a closing$in Styled Mode turns it into math as you type.
Printing, PDF and web pages include the drawn formulas. Word export turns them into real Word equations you can edit in Word.
\$.Prosedown shows your document styled as you type, with the Markdown one click away. This guide is built in: press F1.