Skip to content

MathML operators get no spacing if they are not in the operator dictionary #3288

Open
@xworld21

Description

@xworld21

Issue Summary

Try the following with MathJax 3:

<math>
  <mrow>
    <mi>a</mi>
    <mo>&#x1D438;</mo>
    <mi>b</mi>
  </mrow>
</math>

$a \mathrel{E} b$

The first a E b is rendered with no spacing, unlike the second one.

I'd expect them to be rendered identically, because the default MathML operator spacing prescribes 0.27777em spacing on both sides. (Note: this is assuming I am reading the operator dictionary correctly! However, the native Chrome MathML renderer seems to agree with me.)

Technical details:

  • MathJax Version: 3.2.2
  • Client OS: Windows 11
  • Browser: Chrome 129.0.6668.59

I am replicating this on https://www.mathjax.org/#demo

Supporting information:

Screenshot
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundv3v4

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions