Use protocol-relative URL for mathjax.

See jgm/pandoc-templates#67.
This commit is contained in:
John MacFarlane 2014-08-31 11:18:43 -07:00
parent 611bc27862
commit b9d524c703

View file

@ -814,7 +814,7 @@ options =
(\arg opt -> do
let url' = case arg of
Just u -> u
Nothing -> "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
Nothing -> "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
return opt { optHTMLMathMethod = MathJax url'})
"URL")
"" -- "Use MathJax for HTML math"