kostub / iosMath

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

Failure on rendering \sqrt{} command #188

Open nuixdt opened 4 months ago

nuixdt commented 4 months ago

If the latex is \sqrt only, it will crash on getNextCharacter function call. We modify the sqrt command to check the array index and length by hasCharacters function in MTMathListBuilder.m