-
I am experiencing an issue with using MathJax for formulas within my documentation. Problem: When I navigate to a page, the formulas do not render immediately. Instead, the space designated for these formulas remains blank upon the first load. Interestingly, when I refresh the page, the formulas then appear as expected. Is there a solution available to ensure that the formulas render properly upon the initial page load, eliminating the need for a refresh each time? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
the above happens when using: $$ {whatever} $$. also: this issue does not occur all the time but quite frequently. |
Beta Was this translation helpful? Give feedback.
-
Looks like there is some sort of incompatibility with MathJax in MKDocs' markdown that using directly the javascript causes some quirks. I just noticed that there is a dedicated plugin mentioned in MKDocs Material' docs, so I added it in mkdocs.yml and it fixed the problems I had: markdown_extensions:
pymdownx.arithmatex:
generic: true |
Beta Was this translation helpful? Give feedback.
-
I also encountered this problem, and my solution is as follows. At first, my config is
After closing the "instant" feature, I no longer need to refresh the page for the formulas to display correctly.
Here are my other configurations, which are the same as those in the website
|
Beta Was this translation helpful? Give feedback.
I also encountered this problem, and my solution is as follows.
At first, my config is
After closing the "instant" feature, I no longer need to refresh the page for the formulas to display correctly.
Here are my other configurations, which are the same as those in the website