arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.26k stars 260 forks source link

Missing space between a command and noun after it #2412

Closed mathematicswizard closed 1 week ago

mathematicswizard commented 1 week ago

A student of mine has this potential bug. He enters an expression in propositional calculus like this: image

But when he escapes it to look at the latex "in the back" he gets this: image

\neg(p\rightarrow\negq)\rightarrow(r\rightarrow\negs)

Where there is no space between \neg and q and \neg and s. If I would have entered this latex directly this is what I would have get: image

The issue is not clear to my on how and why this is happening.