-
Notifications
You must be signed in to change notification settings - Fork 352
self-contained-math:true
in reveal.js
format still require internet access
#9404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What I shared was rendered following the steps below:
|
I tried to build the project with the Internet turned off and in a clean directory, nothing changed. When you opened a presentation offline, did you clear your browser cache? |
It looks like the MathJax plugin is embedded in the assembled presentation, but the plugin itself turns to the Internet for resources. |
Ok, I can reproduce. Edit: Quarto takes over that part which works correctly in the case of
|
I'm experiencing the same bug. Would love some attention being drawn to the problem |
This is what happens. Math in Revealjs is supported through the Math Plugins, which expect the So the embed logic from Pandoc to make everything inlined is not working here. As documented in the Revealjs doc (https://revealjs.com/math/), to make it work offline, it would require downloading Mathjax and configuring revealjs to use the local version - but this also means it won't be embed inside a single HTML. I don't know if there is a good solution here 🤔 Maybe using KaTeX and server side rendering would be the easiest way to provide self contained math in Revealjs. Pandoc itself is not embedding mathjax JS when doing |
It is not necessary for the presentation to be a single file. The main thing is that it can be launched offline with the ability to draw formulas. |
I see. This is is not possible with Mathjax right now. I'll see if other math framework like KaTeX can allow this. Thanks for the feedback |
Bug description
When creating presentations with formulas in the
reveal.js
format, the formulas do not render without Internet access, even if you specifyself-contained-math: true
.The presentation file always requests the address https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full and without Internet access the formulas are not rendered.
Steps to reproduce
quarto render
index.html
Expected behavior
Math rendered offline
Actual behavior
Math do not render offline
Your environment
OS: Arch Linux
IDE: VsCode
Quarto check output
The text was updated successfully, but these errors were encountered: