Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
501 stars 44 forks source link

PR into master from dev/olga/8491-Wrong-AsciiMath-output-v1 #310

Closed OlgaRedozubova closed 7 months ago

OlgaRedozubova commented 7 months ago

branch: dev/olga/8491-Wrong-AsciiMath-output-v1

Fixes: [mmd] Wrong AsciiMath output #8491

Latex: \( \log \frac{x}{y^{5}} \)

Screenshot 2024-02-21 at 20 41 06

Asciimath before: log (x)/(y^(5))

Screenshot 2024-02-21 at 20 24 16

Asciimath after: log ((x)/(y^(5)))

Screenshot 2024-02-21 at 20 24 58

More examples:

Screenshot 2024-02-21 at 20 25 56