Skip to notepad
Typehall

Lesson 12 of 12 · Technical Markdown

Equations that typeset themselves

Dollars delimit math — except when they mean money.

In this lesson you will learn inline and display math notation, the currency guard that keeps prices literal, and how math behaves offline and in exports.

Syntax

Inline: the energy relation $E = mc^2$ holds.

Display:

$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$

Single dollars wrap inline math inside a sentence; double dollars on their own lines make a centered display equation. Inside, standard LaTeX applies: \\frac for fractions, ^ and _ for super- and subscripts, Greek letters like \\alpha by name.

Prices stay prices

Typehall refuses to guess: a dollar sign next to a digit is money, not math. $5, $100, and $1.99 render literally, as does a trailing 5$. Escaped dollars (\$) are always literal, and unclosed expressions fall back to source text rather than half-rendering. When you genuinely want math, give the delimiters room: $E = mc^2$, not $5 + $x$.

Rendering, offline, export

  • Math typesets locally in Preview with the app's bundled engine — no CDN, no remote fonts, no requests.
  • After the first visit caches the app, equations render offline exactly as online.
  • HTML export embeds the typeset result, so equations survive outside the app; Markdown export keeps the source notation, which GitHub and other renderers understand.
  • Invalid expressions show the source text with no crash — fix the syntax and the equation appears.

Exercise

The project costs $5 per seat and totals $1.99 per report.

Inline: state $E = mc^2$ in a sentence of your own.

Display: typeset this sum on its own lines:

$$
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
$$

Check three things in Preview: the prices stay literal, the inline formula typesets mid-sentence, and the sum centers on its own lines.

Try this exercise in Typehall

New to Typehall? Edit the Markdown in the new note, then choose Preview to see the rendered result, or Split to edit and preview at the same time. How the Markdown editor works. Tip: Split works especially well with Focus enabled, giving the editor and rendered preview more room.

That completes the course. The tool-side reference with notation and export details is LaTeX Markdown editor, and agent-written drafts get their own workflow at AI Markdown editor. Back to the course index anytime — or open the notepad and keep writing.

Learn Markdown course index — all 12 lessons in order.