Skip to content

Displaystyle="true" does not apply to all elements within an mrow #3595

Description

@samimaattaCelia

Issue Summary

When mrow is given the attribute displaystyle="true" it should apply to all elements within said mrow. This does not happen with MathJax.

Both of the summation expressions are nested inside an mrow element with the attribute displaystyle="true". Visually both of them should appear as uppercase symbols (as if they were block equations), where the numbers 5 and 6 should be under them, not as subscripts.

MathJax 4 output:

Summation signs appearing lower case with subscripts.

Firefox's native output:

Correct output of uppercase summation and under, rather than sub.

OS: Windows 11
Browser: Mozilla Firefox 153.0

Steps to Reproduce:

Use the code to render:

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow displaystyle="true">
  <munder>
    <mo>∑</mo>
    <mn>5</mn>
  </munder>
  <munder>
    <mo>∑</mo>
    <mn>6</mn>
  </munder>
  </mrow>
</math>

Technical details:

  • MathJax Version: 4
  • OS: Windows 11
  • Browser: Mozilla Firefox 153.0

I am using the default MathJax configuration and loading MathJax via

<script src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js" defer></script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Code ExampleContains an illustrative code example, solution, or work-aroundExpected BehaviorThis is how MathJax worksv4

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions