djade007 / latext

A flutter package to efficiently display scientific LaTeX equations using the flutter_math library, without relying on WebView or JavaScript.
European Union Public License 1.2
12 stars 5 forks source link

Parse Error when processing specific LaTeX equations #18

Closed noze12 closed 1 month ago

noze12 commented 3 months ago

Hello, thank you for the convenient package.

I have encountered a case where it shows a "Parse Error". When passing text like the following:

$$\left\{\begin{array}{l}3 x-4 y=1 \\ -3 x+7 y=5\end{array}\right.$$

it results in a Parse Error.

スクリーンショット 2024-04-07 13 39 28

The flutter_math online demo displays this TeX correctly.

スクリーンショット 2024-04-07 13 48 40

I suspect the issue might be occurring due to the split here. https://github.com/djade007/latext/blob/a90876619809b8e1098c59262cfb39a0f6adb40d/lib/latext.dart#L175

I would be grateful if you could address this issue.

djade007 commented 3 months ago

Fixed in #19 version 0.4.0

noze12 commented 3 months ago

Thank you! I've confirmed that the issue has been resolved with the update.