Negative numbers in MathML output has wrong spacing in Firefox
Is your feature request related to a problem? Please describe.
(-1)
and ({-1})
render the same in in MathJax
but the output MathML render differently in Firefox
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mo stretchy="false">(</mo>
<mo>−</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</math>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mo stretchy="false">(</mo>
<mrow data-mjx-texclass="ORD">
<mo>−</mo>
<mn>1</mn>
</mrow>
<mo stretchy="false">)</mo>
</math>
Similar problem for |-1|
and |{-1}|
:
In MathJax:
Output MathML rendered in Firefox:
Similar problem for ordered triples (2,-3,5)
and (2,{-3},5)
:
In MathJax:
Output MathML rendered in Firefox:
Describe the solution you'd like
Add form="prefix"
to <mo>−</mo>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mo stretchy="false">(</mo>
<mo form="prefix">−</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
</math>
Or, add inferred mrow
?
Describe alternatives you've considered
It would be good to produce <mn>-1</mn>
rather than <mo>-</mo><mn>1</mn>
.
Additional context Windows 11 FireFox 102.0a1 (2022-05-28) (64-bit) MathJax v3.2.2