-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Bug: inlining mathjax 3.0 in html fails to load properly [2.10.1] #6599
Comments
Did |
Is pandoc using TeX-AMS_HTML-full everywhere (I only see that it is on the realjs template)? I think years ago I submitted a PR so that pandoc uses the -full variant. If so, it is a self-contained js that will not need dynamic loading of other js. It might still loads some web-fonts. The situation may also change slightly after MathJax 3.0. |
Oh, c.f. d8ad766 , may be it is not using the full variant now. |
Unescaped HTML inside a script tag shouldn't be a problem, should it? I tried the command listed above. Content.html loaded fine in both Safari and Chrome. JavaScript console gave three errors, all because of math fonts that could not be loaded. So I don't think there's a problem here other than the (already known) problem of math fonts. |
I close this, because I think its suceptical to some weird extension in Chrome which give syntax error in this script! |
…chtml (#6600) Closes #6599 c.f. https://docs.mathjax.org/en/latest/web/components/combined.html Note that while this use the full variant of the js, this drops the mathml support. That should be okay, because pandoc renders math in HTML as TeX when using mathjax. This change reduces latency.
It's probably not a pandoc bug (maybe special character escaping or so?)
Reproduce:
Output:
Correct HTML which does not load in Chrome properly because mathjax (I assume) has html tags in the source
,r.write('<html><head><
Can this somehow be fixed? Escping special characters in the source
.js
??The text was updated successfully, but these errors were encountered: