Skip to content

Empty braces confuse \overbrace enrichment #174

Open
@dpvc

Description

@dpvc

The example

\overbrace{{}+2}

produces the incorrect enriched MathML:

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow class="MJX-TeXAtom-OP MJX-fixedlimits">
    <munder>
      <mrow type="overscore" role="addition" id="4" children="2,3">
        <mrow class="MJX-TeXAtom-ORD">

        </mrow>
        <mrow type="prefixop" role="addition" id="2" children="1" content="0" parent="4">
          <mo type="operator" role="addition" id="0" parent="2" operator="prefixop,+">+</mo>
          <mn type="number" role="integer" font="normal" id="1" parent="2">2</mn>
        </mrow>
        <mo accent="true" type="fence" role="overaccent" id="3" parent="4">&#x23DE;</mo>
      </mrow>
    </munder>
  </mrow>
</math>

(Here, the brace has been added to the base, and there is no second element to the <munder>.)

This comes from this forum post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions