LaTeX Math
Write mathematical equations in your markdown with Inkwell using KaTeX.
Inline math
Wrap with single dollar signs:
markdown
The area of a circle is $A = \pi r^2$.Display math
Wrap with double dollar signs:
markdown
$$\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}$$Display math gets its own centered block.
What works
- Greek letters:
$\alpha$,$\beta$,$\gamma$ - Fractions:
$\frac{a}{b}$ - Matrices:
$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$ - Subscripts and superscripts:
$x_i^2$ - Everything KaTeX supports — full reference
Smart dollar sign handling
Inkwell won't turn your $50 or $PATH into math. The parser requires math expressions to start with a letter or backslash. Plain dollar amounts and shell variables are left alone.
In exports
Math renders in both HTML and PDF exports. HTML exports reference KaTeX fonts from a public CDN so math renders correctly when opened in a browser.