desmosinc / mathquill

Magic textboxes where you can type math as easily as writing!
mathquill.com
132 stars 39 forks source link

Make PlusMinus binary after close-bracket #286

Closed jared-hughes closed 4 months ago

jared-hughes commented 4 months ago

This PR makes PlusMinus behave as binary after close-brackets.

Before PR: image

After PR: image

In the latex \left(x\right)+, the call nodeEndsBinaryOperator would be applied when node is the "+". But then nodeL = node[L] gives the whole Bracket node represented by \left(x\right), whose ctrlSeq is \left( (and has the x\right) as children).