fast-reflexes / better-react-mathjax

MIT License
124 stars 16 forks source link

tex2svg is not supported #54

Closed hensuninnovation closed 6 months ago

hensuninnovation commented 7 months ago

https://github.com/fast-reflexes/better-react-mathjax/blob/48f6ad4677a6f36e704e3747d0e0a89500352cd7/src/MathJaxContext/MathJaxContext.tsx#L62

Thank for sharing this library! We noticed that it only supports tex2chtml and other options in the TypesettingFunction setting don't take effect because the MathJax library url is hard coded.

fast-reflexes commented 7 months ago

You're welcome!

You can add your own source if you want: https://github.com/fast-reflexes/better-react-mathjax?tab=readme-ov-file#src-string--undefined

There was just another thread about tex2svg, check it out: https://github.com/fast-reflexes/better-react-mathjax/issues/53

All in all, it works as it should, you just need to import the right source :)

fast-reflexes commented 6 months ago

I will consider this solved, please feel free to reopen if you think not.