ronkok / Temml

TeX-to-MathML conversion library in JavaScript
https://temml.org/
MIT License
162 stars 12 forks source link

precedence of \over and \middle #49

Closed hbghlyj closed 10 months ago

hbghlyj commented 10 months ago

Example

\left\{a\over2\middle|b\right\}

In LaTeX

In Temml

Similarly

\left\{a\over2\middle/b\right\}

In LaTeX

In Temml image

ronkok commented 10 months ago

Yikes! I was unaware that \middle has that kind of effect.

This will require some work in a tricky part of the parser. Some days may go by before I can fix it.

ronkok commented 10 months ago

I think it is interesting to note that this particular parsing bug has been in KaTeX since \middle was introduced 8 years ago. In all that time, no one has reported this bug.

@hbghlyj You're doing some very thorough work.

ronkok commented 10 months ago

Fixed by release v0.10.22.