danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
385 stars 47 forks source link

Equations intermittently not rendering on Safari #156

Open hannorein opened 1 year ago

hannorein commented 1 year ago

I'm having an issue with LaTeX equations sometimes (actually, most of the time) not render in my notebooks. As an example, see this this notebook. I only encounter this on Safari. Chrome and Firefox seem fine. I'm having a hard time making sense of it. Maybe this is some sort of race condition? When the equations don't render, I get errors in the console:

[Error] TypeError: undefined is not an object (evaluating 'MathJax.Ajax.Preloading')
    Global Code (TeX-AMS_CHTML-full.js:15)
[Error] TypeError: undefined is not an object (evaluating 'MathJax.Hub.Startup')
    (anonymous function) (MathJax.js:19:50139)
    execute (MathJax.js:19:3248)
    cb (MathJax.js:19:2825)
emoshou commented 3 weeks ago

I'm having the same issue.

Equations render correctly in Safari when running mkdocs locally, but do not render when hosted on a Github pages. The equations render correctly in Chrome.