Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brackets are lost when parsing and formatting some expressions #15

Open
timmckague opened this issue Apr 10, 2022 · 0 comments
Open

Brackets are lost when parsing and formatting some expressions #15

timmckague opened this issue Apr 10, 2022 · 0 comments

Comments

@timmckague
Copy link

First of all, thank you creating and open sourcing this library. Not sure if you're still maintaining/using this library but just in case...

I've noticed some issues when I try to parse some expressions with brackets. For example if I feed in the latex 5 - ( 3 + 1 ) and then convert the result to math, I get 5-3+1 instead of 5-(3+1) I would expect.

At first I thought this might be related to an issue in the formatter, but digging a little further into the problem I see that the expressions 5 - 3 + 1 and 5 - (3 + 1) unexpectedly produce the same AST.

@timmckague timmckague changed the title Brackets are lost when parsing for formatting some expressions Brackets are lost when parsing and formatting some expressions Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant