roniemartinez / latex2mathml

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

Block mode not using moverunder #489

Open cuppajoeman opened 1 week ago

cuppajoeman commented 1 week ago

From what I understand when you use block mode in latex we do something like this:

\[
\sum_{i=1}^n i
\]

We would get :

image

when we try the same using latex2mathml we get the following:

@>>> convert(r"\sum_{i=1}^n i", display="block")
'<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mrow><msubsup><mo>&#x02211;</mo><mrow><mi>i</mi><mo>&#x0003D;</mo><mn>1</mn></mrow><mi>n</mi></msubsup><mi>i</mi></mrow></math>'

Screen Shot 2024-10-13 at 23 21 47

I find this behavior strange because I requested it in block mode but I didn't get what latex gives when in block mode.