asnunes / mathml-to-latex

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

The Parse of divide is incorrect ? #1

Closed DiamondYuan closed 3 years ago

DiamondYuan commented 3 years ago
console.log(require('mathml-to-latex').convert(`<math><mi>x</mi><mo>=</mo><mn>4</mn><mrow><mo>/</mo></mrow><mn>5</mn></math>`)) 

got x=4//5

asnunes commented 3 years ago

Yes, the divider operator was being converted to double bar as you described. Thanks for the report. Now fixed on PR #2.