roniemartinez / latex2mathml

Pure Python library for LaTeX to MathML conversion
MIT License
183 stars 25 forks source link

Parsing super/subscript is different from LaTeX #203

Closed amuramatsu closed 3 years ago

amuramatsu commented 3 years ago

Some expressions with ^ and/or _ are rendered different from LaTeX.

X_12 expected: <mrow><msub><mi>X</mi><mn>1</mn></msub><mn>2</mn></mrow> actual: <mrow><msub><mi>X</mi><mn>12</mn></msub></mrow>

X_\mathrm{min} excepted: <mrow><msub><mi>X</mi><mrow><mo>m</mo><mo>i</mo><mo>n</mo></mrow></msub></mrow> actual: <mrow><msub><mi>X</mi></msub><mrow><mi>m</mi><mi>i</mi><mi>n</mi></mrow></mrow>

roniemartinez commented 2 years ago

@all-contributors please add @amuramatsu for bug

allcontributors[bot] commented 2 years ago

@roniemartinez

I've put up a pull request to add @amuramatsu! :tada: