viktorstrate / algebra-latex

Parse and calculate latex formatted math
https://www.npmjs.com/package/algebra-latex
MIT License
28 stars 9 forks source link

new AlgebraLatex().parseLatex(string) throws error #6

Closed pacopicon closed 5 years ago

pacopicon commented 5 years ago

This throws error => let x = '9+8-7\\cdot 6\\left(5+4-3\\left(2\\right)\\left(6\\right)\\right)8-\\left(4\\right)2\\left(3\\right)', new AlgebraLatex().parseLatex(x)

image

However, this string is parsed fine in Symbolab -> https://www.symbolab.com/solver/step-by-step/9%2B8-7%5Ccdot6%5Cleft(5%2B4-3%5Cleft(2%5Cright)%5Cleft(6%5Cright)%5Cright)8-%5Cleft(4%5Cright)2%5Cleft(3%5Cright)

viktorstrate commented 5 years ago

Thank you for reporting the problem. I have fixed the issue in 21983c3