Menu

#4684 lurkmathml does not typeset x_1 correctly

None
closed
nobody
None
5
2026-03-31
2026-03-17
Leo Butler
No

The tex code does the following:

tex(x_1);
$$x_{1}$$

The mathml code slavishly follows the same pattern, which is wrong:

mathml(x_1);
<math xmlns="http://www.w3.org/1998/Math/MathML">  <msub><mi>x_</mi> <mn>1</mn></msub> </math>

If we follow the DWIM method that tex uses, then the underscore _ should be dropped from the mathml output.

Discussion

  • Leo Butler

    Leo Butler - 2026-03-31

    Fixed in commit 69981c5f6.

     
  • Leo Butler

    Leo Butler - 2026-03-31
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB