Discussion:
[Docutils-users] MathJax
Alan Isaac
2016-02-21 16:58:59 UTC
Permalink
If I request MathJax output from rst2html,
it is included as an http request.
This means the content won't display (by default)
in browsers that care about mixed content if the
page is securely served. (Examples: FireFox, Edge.)

As I understand it, MathJax recommends using https:
http://mathjax.readthedocs.org/en/latest/misc/faq.html#how-do-i-access-the-mathjax-cdn-using-a-https-secure-connection

Can this be changed in the source (rather than
relying on user configuration)?
I am grateful for the configuration option, but it seems
the default is wrong?

Thanks,
Alan Isaac

PS I am confused about why the documentation
http://docutils.sourceforge.net/docs/user/config.html#math-output
reads::

math-output: MathJax file:/usr/share/javascript/mathjax/MathJax.js

instead of::

--math-output="MathJax file:/usr/share/javascript/mathjax/MathJax.js"

In my experience, the quotes are essential for this to work.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
Guenter Milde
2016-05-24 10:31:33 UTC
Permalink
Post by Alan Isaac
If I request MathJax output from rst2html,
it is included as an http request.
This means the content won't display (by default)
in browsers that care about mixed content if the
page is securely served. (Examples: FireFox, Edge.)
http://mathjax.readthedocs.org/en/latest/misc/faq.html#how-do-i-access-the-mathjax-cdn-using-a-https-secure-connection
Can this be changed in the source (rather than
relying on user configuration)?
Then, the abovementioned Browsers would refuse to show the page if it is
served via "normal" html...
Post by Alan Isaac
I am grateful for the configuration option, but it seems
the default is wrong?
I recommend setting the mathjax URL in the docutils configuration file.
Post by Alan Isaac
PS I am confused about why the documentation
http://docutils.sourceforge.net/docs/user/config.html#math-output
math-output: MathJax file:/usr/share/javascript/mathjax/MathJax.js
--math-output="MathJax file:/usr/share/javascript/mathjax/MathJax.js"
In my experience, the quotes are essential for this to work.
The example shows the use in a config file.
The quotes are essential for command line arguments. They are not required
in the configuration file. (Also a colon will not work on the command line.)


Günter


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to

Loading...