harunurhan / react-latex-next

Render LaTeX in React apps
https://react-latex.netlify.app
76 stars 13 forks source link

how to use throwOnError #23

Closed vivekcontentstack closed 3 years ago

vivekcontentstack commented 3 years ago

Hi

I'm passing throwOnError as false but still the page is breaking because of the error. In the docs it says it will fall back with the broken text but in my case its breaking the complete page

harunurhan commented 3 years ago

The prop is called strict and it's false by default. So it shouldn't throw errors but that's valid only for latex rendering errors thrown by katex.renderToString. For example when the LaTeX you are passing is broken.

Maybe you have a different error? If you post the error and the stack trace here I could try to help.

harunurhan commented 3 years ago

Closing due to inactivity