Closed GiggleLiu closed 3 years ago
I find a possible issue, the viewBox is too large for the latex to render correctly sometime. Because MathJax has a minimum superscript/subscript size.
I feel this kind of rendering is not perfect. Maybe not a good fit for this package.
List of changes
MathJax support when rendering SVG in a browser
It works directly in Pluto notebooks.
If not using a Pluto notebook, one needs to add the following javascript in the HTML header
Allowing inserting Raw SVG elements
I feel this provides flexibility to make an extension. Although most people do not need this. For example, the following code also renders the Mathjax
Notes
Please review this PR carefully because I am not quite familiar with Compose API.
Reference: https://stackoverflow.com/questions/15962325/mathjax-inside-svg#:~:text=Currently%2C%20the%20only%20way%20to,'t%20support%20.