mathjax / MathJax-docs

MathJax documentation. Beautiful math in all browsers. Beautifully documented.
Apache License 2.0
546 stars 231 forks source link

Interfacing MathJax with PyScript and SymPy and Quarto #328

Closed axiomtutor closed 1 year ago

axiomtutor commented 1 year ago

I have made this issue on StackExchange, which I think is due to some kind of error coming from MathJax:

https://stackoverflow.com/questions/76930691/pyscript-quarto-and-sympy

I think at it's core, the issue is the script inside of a webpage

<script>

function draw(tex, id) {
    var math = MathJax.Hub.getAllJax(id)[0];
    MathJax.Hub.Queue([ "Text", math, tex ]);
}

</script>

which gabs text from the div with id equal to id. That text should contain well-formated MathJax text like \(x^2\), but for some reason when it gets passed into MathJax.Hub.Queue something goes wrong.

Anyone have any guess about what could be going on here?