Using LaTeX with react-plotly

Hello,

I am having issues with using LaTeX with react-plotly. I need to be able to use the result HTML file offline, so importing mathjax from a CDN is not an option. What would be the suggested way of doing it, since I couldn’t find anything about it in react-plotly documentation?

You need to download MathJax from github and checkout the correct branch:git checkout 2.7.7 . Then you copy the unpacked folder in to your project and import it from the html with a script tag.

<script src="../MathJax.js?config=TeX-MML-AM_CHTML" charset="utf-8"></script>