Closed XiangyunHuang closed 1 year ago
The issue appears because you embed two versions of MathJax, one inside plotly and one inside Quarto which causes conflicts.
Don't set MathJax
Setting MathJax and adding an equation
The only case it does not work is when setting MathJax in Quarto/Pandoc with no equations.
Thanks for tracking this down, @mcanouil!
Unfortunately, there's not much we can do about javascript libraries that pollute the global namespace and conflict with each other in this way.
I was curious about what you found @mcanouil so I did have a look.
The only case it does not work is when setting MathJax in Quarto/Pandoc with no equations.
For me it works also in this case when interacted with the graph. This is because a Mathjax method is called to render the equation.
I think this is missing when only plotly is loaded somehow. When loading mathjax with Quarto, this is mathjax 3 which is used, and it will correctly
So issue could be either in how plotly is loading the Math and missing the render command at the end of document, or maybe a difference between Mathajx 2.7 and 3
Either way, I don't think this is Quarto related indeed.
Bug description
When I add a figure before another figure which includes some math symbols, then math symbols is disappeared.
The first figure.
Here is another figure.
The whole Qmd file
Checklist
quarto check
so we know which version of quarto and its dependencies you're running.