THE GITHTML FIELD GUIDE

Write Markdown math without assuming every renderer supports it

Confirm that the destination supports the mathematical syntax you intend to use, then provide a plain-language explanation of every equation. GitHub supports specific math forms, but ordinary Markdown alone does not guarantee equation rendering. Test an inline and a display expression through the actual export path before converting a larger technical document.

Begin with the relationship, not the delimiters

An equation is useful only when readers know what its variables represent and when it applies. Write the relationship in words first: total processing time equals the sum of waiting and execution time for the measured interval. Define units, indexing, and any simplifying assumptions before introducing compact notation. This keeps the explanation useful when the equation is viewed as source or spoken aloud. Avoid importing a complicated formula solely because it looks authoritative. If the relationship is a simple multiplication, a short sentence or plain-text expression may communicate it more clearly than a specialized rendering dependency.

Build a minimal notation fixture

Include one inline expression, one displayed expression, and one literal dollar amount in the scratch page. This reveals whether the processor distinguishes math delimiters from ordinary currency text. Use the target platform's documented syntax rather than copying a form that works only in a different notebook or publishing tool. The sample is an illustrative relationship, not a measured performance claim. Check special characters and subscripts carefully, because an equation can render beautifully while expressing the wrong calculation. Keep the test small enough that a reviewer can compare source notation and visual output without specialized tooling.

markdown
Total time combines queue wait and execution time.

$$T_{total} = T_{wait} + T_{run}$$

All terms use seconds over the same observation window.

Review the exported document as a separate product

A math feature may rely on a runtime library or assets that do not accompany a saved page. Determine what the chosen exporter actually emits and whether its equation remains readable under the reader's expected settings. If portability is required, consider a verified static representation with an adjacent text explanation, using an appropriate external conversion process. Do not tell readers to enable arbitrary scripts just to rescue one formula. Verify that the explanation still states units and assumptions even when the equation is unavailable. A successful Markdown preview establishes only that preview's behavior, not the capabilities of every later reader. Ask a reviewer to calculate one small example manually from the stated relationship. That catches swapped terms or inconsistent units that a renderer cannot identify, regardless of how polished the equation looks.

  1. Name all variables and units before selecting a math syntax.
  2. Test inline notation, display notation, and a normal dollar amount in the same fixture.
  3. Compare the equation's meaning with the prose explanation, not merely its appearance.
  4. Inspect the final export for dependencies and retain a readable textual interpretation.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All markdown and readme files guides →

Read as MarkdownAll guides

Write Markdown math without assuming every renderer supports it · gitHtml