markup: render TeX math as MathML #294

closed cmc opened this on 2026-09-28 06:27 UTC · roadmap web

Discussion

cmc 2026-09-28 06:27 UTC

TeX math in markdown and org renders as source.

  • Markdown $…$ and $$…$$ (goldmark extension), org LaTeX fragments and \[…\].
  • Rendered server-side to MathML, which current browsers display natively; the CSP does not change.
  • Needs a Go TeX-to-MathML converter; evaluate what exists before writing one.
  • The ugcHTML policy admits the MathML elements and attributes the converter emits and nothing else.
  • Applies everywhere markup renders: READMEs, wiki, issues, MRs, comments, releases, snippets.

closed by cmc in commit ebab9139d1: web: linear inline math scan, per-document math budget, own math policy

2026-09-29 06:33 UTC

referenced in commit 58b796baf9 by cmc: texmath: refuse an argument that renders nothing; fuzz Convert

2026-09-29 06:33 UTC

referenced in commit 9623fdfd99 by cmc: web: render TeX math in markdown and org as MathML

2026-09-29 06:33 UTC

referenced in commit a097b4f379 by cmc: texmath: convert a TeX subset to MathML

2026-09-29 06:33 UTC