Page MenuHomePhabricator

\textbf{1} renders incorrectly in MathML and client-side MathJax modes
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Set rendering mode to client side MathJax
  • Enter the formula <math>\textbf{1}</math>

What happens?:

Renders as

image.png (63×252 px, 2 KB)

What should have happened instead?:

Renders as a single digit.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Chrome, Windows

This bug is simplified from a formula in https://en.wikipedia.org/wiki/Transcendental_number

Fixed in

  • MathJax
  • Firefox
  • Chrome

Event Timeline

temml.org generates <math display="block" class="tml-display"><mtext>𝟏</mtext></math> which seems to be what we want to get as well

Here the problem is already in the checking phase. text... is treated as as any macro so one could write \textbf{\sin(x)} which is not possible in temml. We (mathoid) outputs the plain input.

Change #1162254 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Fix regression in number rendering

https://gerrit.wikimedia.org/r/1162254

Change #1162254 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Fix regression in number rendering

https://gerrit.wikimedia.org/r/1162254

Physikerwelt lowered the priority of this task from High to Medium.Sep 7 2025, 8:31 PM
Physikerwelt updated the task description. (Show Details)

Change #1185367 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Fix rendering of bold numbers in Chrome

https://gerrit.wikimedia.org/r/1185367

Change #1185367 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Fix rendering of bold numbers in Chrome

https://gerrit.wikimedia.org/r/1185367

Unfortunately, beta https://en.wikipedia.beta.wmcloud.org/ is not usable, but it works locally.

Chrome:

Screenshot 2025-09-10 at 18.38.30.png (1×1 px, 113 KB)

Physikerwelt updated the task description. (Show Details)