christianp / asciimath2tex

JavaScript library to convert AsciiMath to TeX
Apache License 2.0
68 stars 16 forks source link

Parsing not correctly #27

Closed KartoniarzEssa closed 1 year ago

KartoniarzEssa commented 1 year ago

When I'm trying to parse this string: {\displaystyle \frac{{m}}{{n}},\quad\text{gdzie}\quad{m},{\;n}\in{{{\mathbb{Z}}}}\quad\text{oraz}\quad{n}\ne{0}}

the output is: \left\lbrace d i s p l a y s t y \le \frac{\left\lbrace m \right \rbrace}{\left\lbrace n \right \rbrace} , \quad \text{gdzie} \quad \left\lbrace m \right \rbrace , \left\lbrace ; n \right \rbrace \in \left\lbrace \left\lbrace \left\lbrace \mathbb{Z} \right \rbrace \right \rbrace \right \rbrace \quad \text{oraz} \quad \left\lbrace n \right \rbrace \ne \left\lbrace 0 \right \rbrace \right \rbrace

Am I doing something wrong, or the string is wrong?