Summary
Before:
- On the server, MediaWiki calls the Mathoid service which uses MathJax (in Node.js) to parse LaTeX plain text and generate MathML output and SVG output.
- The MathML render is hidden by default with CSS.
- The SVG output is stored as a file and rendered via an <img>.
After:
- On the server, MediaWiki directly parses LaTeX plain text and generates MathML.
- The MathML render is visible by default.
- MathJax (client-side JavaScript) improves the MathML rendering by using <svg>.
Plan
Background: The impetus is T338429: Prepare Mathoid for RESTbase sunsetting. Previous plans: Aug 2024 (T271001#11499253), May 2025 (T271001#10863210), Dec 2025 (T271001#11499253), June 2026 (T271001#12123535).
- Implement LaTeX parsing and conversion to MathML directly in MediaWiki PHP, without needing an external service (Mathoid/MathJax).
- Switch default for stable release in MediaWiki 1.43.
- T414055: Performance review of MathJax client-side mode
- T432727: Verify visual parity between mathoid and mathml+mathjax via parsoid visual diff tests
Prioritisation
Full visual parity (pixel by pixel) is not the goal. How a bug gets onto this list: Does it change what a reader understands?
We will be using a categorization in four levels: output is missing, wrong, or shows markup as text (broken and high priority); symbols are right but the layout changes how the expression reads, or makes it illegible (misleading and high priority); it reads correctly but looks worse than today (degraded and medium priority); it is only noticeable side by side (cosmetic and low priority).
The main source of reported issues will remain https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Mathematics/MathFormattingBugs and turned into phabricator tasks as reference to the roll-out.
Deployment schedule
Schedule per T271001#12123535 and T271001#12183483. See also m:Tech/News/2026/33, and m:Tech/News/2026/45:
- Wed 15 July: Phase 1 rollout (Enable on group1 wikis: including test.wikipedia.org and www.mediawiki.org). change 1224074
- Mon 3 Aug: Phase 2 rollout (Enable on wikis other than Wikibooks/Wikisource/Wikipedia: including Wikiversity, Commons, and Wikidata). change 1311041
- Thu 27 Aug
12 Aug: Phase 3 rollout (Enable on Wikibooks). change 1311058 - Thu 27 Aug
19 Aug: Phase 4 rollout (Enable on Wikisource). change 1311059 - Wed 28 Oct
20 Aug: Phase 5 rollout (Enable on small, medium, and canary Wikipedias: including itwiki, hewiki, cawiki). change 1311060 - Mon 2 Nov
27 Aug: Phase 6 rollout (Enable on 27 largest Wikipedias: including enwiki). change 1311061 - … (wait for 30-day ParserCache churn) ...
- Mon 28 Sep: 24-hour brownout of Mathoid API. T431372
- date TBD: Shutdown Mathoid service, archive repositories, update docs, removing service wiring, etc. T432514
MediaWiki release:
- Backport latest MathML implementation to 1.45 branch.
- Backport latest MathML implementation to 1.44 branch.
- Backport latest MathML implementation to 1.43 LTS branch.
- Backport latest MathML implementation to 1.39 LTS branch.











