w3c / mathml

MathML4 editors draft
https://w3c.github.io/mathml/
Other
61 stars 18 forks source link

Chemistry/clean_mathml bug #508

Closed NSoiffer closed 1 week ago

NSoiffer commented 1 week ago

The following

<math><mrow>
  <msubsup>
     <mrow><mi mathvariant="normal">SO</mi></mrow>
     <mn>4</mn>
     <mrow><mn>2</mn><mo>&#x2212;</mo></mrow>
  </msubsup>
</mrow></math>

results in returning only the 'S'. The problem is after the call to attach_scripts_to_split_element in clean_mathml. It is returning the result of that which is just the 'S' but it needs to be the parent.

NSoiffer commented 1 week ago

Oops, added bug report to wrong repo