kostub / iosMath

Beautiful math equation rendering on iOS and MacOS
MIT License
1.36k stars 234 forks source link

Fixing Invalid Syntax Crash. #164

Closed zsbee closed 2 years ago

zsbee commented 3 years ago

There is no check for rows count which is unsafe currently. If this is not changed the builder crashes for this example:


Pr(H | E) \text{ is the probability that the the hypothesis } H \text{ is true given evidence } E \text{ is true} \\
Pr(H) \text{ is the probability that the hypthesis } H \text{ is true prior to } E \\
Pr(\neg H) \text{ is the probability that } H \text{ is false prior to } E \\
Pr(E\vert H) \text{ is the probability ) E \text{ is true given } H \text{ is true} \\
Pr(E\vert\neg H) \text{ is the probability } E \text{ is true given } H \text{ is false} \\```