Math Not Rendering Correctly

Symptom

LaTeX math appears as raw text instead of rendered equations, or renders incorrectly.

Supported syntax

Markant supports:

SyntaxTypeExample
$...$Inline math$E = mc^2$
$$...$$Display math$$\sum_{i=1}^{n} x_i$$
\(...\)Inline math (alt)\(E = mc^2\)
\[...\]Display math (alt)\[\sum_{i=1}^{n} x_i\]
\begin{align}...\end{align}Aligned equations

Common issues

Dollar signs in non-math text

A single $ in regular text (like “$50”) can confuse the math parser. Use \$ to escape dollar signs that aren’t math:

The price is \$50.

Unsupported LaTeX commands

Markant uses SwiftUIMath for rendering, which supports a large subset of LaTeX but not everything. Unsupported commands may render as raw text.

Commonly unsupported:

  • \newcommand and custom macros
  • Some advanced environments (\tikz, \pgfplots)
  • \text{} inside math (use \mathrm{} instead)

Math in tables

Math works in tables. If it appears broken, check that the table syntax is correct — a misaligned pipe character can break the entire row.

Still not working?

Contact [email protected] with the specific LaTeX that fails to render.

Download this article Markdown (.md) MarkBook (.mkb)

Last updated: 2026-04-14