Closed kherP closed 1 year ago
Hi there!
You have to use the MathJax delimiters set out in the configuration. If you give no configuration, the default applies which means \(
and \)
are used for inline math. If you supply them, the code works as expected. Perhaps the other library that you mention takes care of this for you but better-react-mathjax
aims at being just a wrapper around MathJax that doesn't interfere with regular MathJax operation, therefore you can pick your own delimiters in the configuration and you also have to add the delimiters in code. Please check examples in the documentation.
Sandbox with working samples using two different delimiters
Please close the ticket if this solves your problem :)
it works, thank you!
Hi, i tried to use this library to render
but it's not rendered properly:![image](https://user-images.githubusercontent.com/12553063/199918753-1a7d3087-bbd1-4655-8bcf-cb0e6ab9d4e4.png)
I tried using the following code:
but in MathJax preview, i can see it rendered perfectly. The only difference is that i added dollar sign for prefix and suffix for the mathjax demo. I tried to do the same in better-react-mathjax but It didn't work.