-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Math does not get rendered #283
Comments
I am able to see the formulas at https://radon.readthedocs.org/en/latest/intro.html#maintainability-index. Perhaps you are not able to get MathJax from http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML? |
Thanks for the help. I'm using Chromium version 23.0.1271.64 (165188). It seems that the insecure content that Chrome complains about is some Javascript from MathJax. I found the following wiki section about this issue: So apparently we just need to change MathJax url in Sphinx/Readthedocs conf.py, I'll dig Sphinx docs. |
Looks like you should be using src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">. Ugly, but they say (http://docs.mathjax.org/en/latest/start.html#secure-access-to-the-cdn) it is a stable address. |
This is going to break for Firefox users very soon due to bug 834836 (release notes). This is currently in Aurora, and should be expected to hit release August 6. |
Hmm thanks for the report. So there is no workaround? |
I think if you wanted a straight workaround, you'd need to pull in MathJax.js as a static file and would probably have to override one of the templates. But I suspect that figuring out how to fix it in readthedocs.org's templates would be better (and everyone would get to take advantage, then.) |
This actually looks to be driven by var mathjax_host = (
("https:" == document.location.protocol)
? "https://c328740.ssl.cf1.rackcdn.com/"
: "http://cdn.mathjax.org/"
);
document.write(
unescape(
"%3Cscript"
+ " src='"
+ mathjax_host
+ "mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
+ "'"
+ " type='text/javascript'
+ "%3E"
+ "%3C/script%3E"
) // this HAS to be escaped, otherwise it would
// close the actual (not injected) <script> element
); Then, set |
any updates on this issues? I meet the same problem now.. |
Apparently it's solved by adding this line in
Obviously the MathJax extension must be added as well to the corresponding setting variable. As you can see, now it gets rendered: On Chrome, at least. For me, the issue is solved and can be closed. |
@rubik thanks a lot ! |
@hit9 No problem, happy to help! Did you solved the issue? |
@rubik It seems works. http://curdpy.readthedocs.org/ Fonts on google.com display well. |
@rubik but, it goes back into that problem a short time later. .. |
@hit9 That's weird! My page still works as expected. Are you sure that it isn't another problem? |
mathjax_path = '//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML Should work for both http and https. Cheers, On Tue, Oct 1, 2013 at 8:23 PM, 王超 notifications@github.com wrote:
Eric Holscher |
@ericholscher I tested your solution, but not work with https. Commit is here: hit9/skylark@2b5d4df |
I think you should remove the part inside the |
Ah, indeed. Sorry.
|
oh.. I updated that line to
https still blocked... http is always ok. |
That's not a surprise--as explained at http://docs.mathjax.org/en/latest/start.html#secure-access-to-the-cdn posted by @vrajmohan the URLs are not the same, hence the need for the stupidly complicated JS snippet. |
You should be able to safely always point to https, and it will work fine on http. |
Except now you have mixed active content again. |
an http page including an https link won't cause any issue that I know of. Lots of pages do it all the time. |
Sorry, you're quite right that I had that backwards. Maybe it's time to pull request a universal switch to the SSL CDN address? |
Seems reasonable, as long as the SSL CDN isn't costing you ton of money. On Mon, Oct 7, 2013 at 12:21 PM, pao notifications@github.com wrote:
Eric Holscher |
I've no idea how MathJax's hosting is funded. |
Closing this now. |
I use MathJax in my project documentation and it does not get rendered!
I think this is the same of #99, not sure why that one was closed...
EDIT: This is what I mean:
https://radon.readthedocs.org/en/latest/intro.html#maintainability-index
You can see that there is a weird [MI escape instead of the formulas.
The text was updated successfully, but these errors were encountered: