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
133 stars 49 forks source link

Why does buildTeXString have a cursorColor property? #37

Open garv-shah opened 2 years ago

garv-shah commented 2 years ago

Bug description

node.buildTeXString() seems to have a cursorColor property, but it really shouldn't need one. All it does is append something like \textcolor{#000000}{\cursor} to the end of tex string, and it seems to break loading it back into the MathField document

To Reproduce

Steps to reproduce the behavior: Get a MathFieldEditingController and call .currentNode.buildTexString() and try to load the string back in

Expected behavior

No cursorColor attribute, loading back in without changes

garv-shah commented 2 years ago

also it seems like parsing it back in adds brackets every time to the end, is that intended behaviour?