simpleclub / math_keyboard

Math expression editing using an on-screen software keyboard or physical keyboard input in a typeset input field in Flutter.
https://simpleclub.github.io/math_keyboard
BSD 3-Clause "New" or "Revised" License
134 stars 50 forks source link

SC-4183 convertMathExpressionToTeXNode does not keep parentheses #16

Closed edhom closed 3 years ago

edhom commented 3 years ago

Description

Adds parentheses for binary operators, when converting a math_expression to a tex ast. Adds special cases for pi and e when converting a math_expression to a tex ast. Removes the leading zero from an unary minus when converting tex into a math_expression.

Related issues & PRs

https://simpleclub.atlassian.net/browse/SC-4183

Checklist

Remove If [...] items that do not apply to your PR.

creativecreatorormaybenot commented 3 years ago

@edhom Tests seem to be failing (on all channels).

creativecreatorormaybenot commented 3 years ago

Maybe we can also include test cases for the parentheses and unary minus :)

edhom commented 3 years ago

@creativecreatorormaybenot I'm not allowed to merge😭

creativecreatorormaybenot commented 3 years ago

@edhom Are you not able to merge now? (now that all checks have passed and there is an approval)

edhom commented 3 years ago

@creativecreatorormaybenot No I'm not authorized:D