Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #1024
Closed
Open
Issue created Jan 28, 2015 by Peter Krautzberger@pkraContributor

content-mathml.js modifies Presentation MathML (badly) [WAS: 2.5-beta: `content-mathml.js` and `mml3.js` clash]

If both extensions are loaded, I get rendering issues.

<math xmlns="http://www.w3.org/1998/Math/MathML">

<mstack>
  <mscarries crossout="downdiagonalstrike">
    <mn>2</mn>  <mn>12</mn>  <mscarry crossout="none"> <none/> </mscarry>
  </mscarries>
  <mn>2,327</mn>
  <msrow> <mo>-</mo> <mn> 1,156</mn> </msrow>
  <msline/>
  <mn>1,171</mn>
</mstack>
</math>

turned into

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mtable columnspacing="0em">
    <mtr>
      <mtd>
        <mover>
          <mphantom>
            <mn>0</mn>
          </mphantom>
          <mi>mpadded</mi>
        </mover>
      </mtd>
      <mtd>
        <mn>2</mn>
      </mtd>
      <mtd>
        <mn>,</mn>
      </mtd>
      <mtd>
        <mover>
          <menclose notation="downdiagonalstrike">
            <mn>3</mn>
          </menclose>
          <mpadded width="0em" lspace="-0.5width">
            <mn>2</mn>
          </mpadded>
        </mover>
      </mtd>
      <mtd>
        <mover>
          <menclose notation="downdiagonalstrike">
            <mn>2</mn>
          </menclose>
          <mpadded width="0em" lspace="-0.5width">
            <mn>12</mn>
          </mpadded>
        </mover>
      </mtd>
      <mtd>
        <menclose notation="none">
          <mn>7</mn>
        </menclose>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <menclose notation="bottom">
          <mpadded depth=".1em" height="1em" width=".4em">
            <mo>-</mo>
          </mpadded>
        </menclose>
      </mtd>
      <mtd>
        <menclose notation="bottom">
          <mpadded depth=".1em" height="1em" width=".4em">
            <mn>1</mn>
          </mpadded>
        </menclose>
      </mtd>
      <mtd>
        <menclose notation="bottom">
          <mpadded depth=".1em" height="1em" width=".4em">
            <mn>,</mn>
          </mpadded>
        </menclose>
      </mtd>
      <mtd>
        <menclose notation="bottom">
          <mpadded depth=".1em" height="1em" width=".4em">
            <mn>1</mn>
          </mpadded>
        </menclose>
      </mtd>
      <mtd>
        <menclose notation="bottom">
          <mpadded depth=".1em" height="1em" width=".4em">
            <mn>5</mn>
          </mpadded>
        </menclose>
      </mtd>
      <mtd>
        <menclose notation="bottom">
          <mpadded depth=".1em" height="1em" width=".4em">
            <mn>6</mn>
          </mpadded>
        </menclose>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <mi>mtd</mi>
      </mtd>
      <mtd>
        <mn>1</mn>
      </mtd>
      <mtd>
        <mn>,</mn>
      </mtd>
      <mtd>
        <mn>1</mn>
      </mtd>
      <mtd>
        <mn>7</mn>
      </mtd>
      <mtd>
        <mn>1</mn>
      </mtd>
    </mtr>
  </mtable>
</math>

See also http://jsbin.com/hebumulexa/2/edit

Assignee
Assign to
Time tracking