MatejBransky/react-katex

TeX component crashing

jaqxues opened this issue · 0 comments

Describe the bug
Currently the component completely crashes when Katex throws an exception, making the entire page go blank if that happens.

It is mentioned nowhere that you would need Error Boundaries. I would suggest either changing the documentation to add some form of error handling on the user-site, or handle the error in the component

To Reproduce
Katex crashes on the following input \begin{\pmatrix}. Render the Tex component with that input. It crashes.

Expected behavior
Either it not crashing, or mentioning in the documentation / usage that it can crash!