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

feat: Add no brace parse & show braket flag #62

Closed flexboni closed 9 months ago

flexboni commented 9 months ago

Description

Normarlly Latex foramt not use '{..}' (ex. Not! {x}^2, Like!!! x^2) So i add additional parsing logic that don't have brace. And Pass 'showBracket' parameter to Controller, Switch show braket in Textfield

Related issues & PRs

Links to issues and PRs that are related to your PR. Use keywords for issues if applicable.

Checklist

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

edhom commented 9 months ago

@flexboni Thanks for your contribution:) If I remember correctly, we needed the additional parenthesis in order to keep the right precedence. Are you sure they can be safely removed? If so, I would not even give the option to showBrackets...