simpleclub / math_keyboard

Math expression editing using an on-screen software keyboard or physical keyboard input in a typeset input field in Flutter.

Home Page:https://simpleclub.github.io/math_keyboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why does buildTeXString have a cursorColor property?

garv-shah opened this issue · comments

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

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