asnunes / mathml-to-latex

A JavaScript tool to convert mathml string to LaTeX equation string.
MIT License
51 stars 14 forks source link

Missing space from generated latex #13

Closed samgabriel closed 1 year ago

samgabriel commented 1 year ago

When passing this mathmml: `<math xmlns=\"http://www.w3.org/1998/Math/MathML\">

A
<mo>=</mo>
<mi>π</mi>
<msup>
  <mrow>
    <mi>r</mi>
  </mrow>
  <mrow>
    <mn>2</mn>
  </mrow>
</msup>

` Result should be A=\pi r^{2} but the result become A=\pir^{2} missing space after \pi

only-yao commented 1 year ago

When passing this mathmml: <math xmlns=\"http://www.w3.org/1998/Math/MathML\"> <mi>A</mi> <mo>=</mo> <mi>π</mi> <msup> <mrow> <mi>r</mi> </mrow> <mrow> <mn>2</mn> </mrow> </msup> </math> Result should be A=\pi r^{2} but the result become A=\pir^{2} missing space after \pi

I encountered the same issue. Have you resolved it?

asnunes commented 1 year ago

Fixed on #17 Thanks for the report