diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2015-06-09 12:19:06 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2015-06-09 12:19:06 -0700 |
commit | 8c47bd63e86ef79efaa98b36af3b3ceb093cc035 (patch) | |
tree | 966ed86834f8b4e72a0a8fb035647be276314fd1 | |
parent | edb0bcc04f330042a7b7f73e2806c534b9869e62 (diff) | |
download | pandoc-8c47bd63e86ef79efaa98b36af3b3ceb093cc035.tar.gz |
Use https: for mathjax/katex/google-charts CDNs.
Closes #1920.
-rw-r--r-- | pandoc.hs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -813,7 +813,7 @@ options = (\arg opt -> do let url' = case arg of Just u -> u - Nothing -> "http://chart.apis.google.com/chart?cht=tx&chl=" + Nothing -> "https://chart.apis.google.com/chart?cht=tx&chl=" return opt { optHTMLMathMethod = WebTeX url' }) "URL") "" -- "Use web service for HTML math" @@ -829,7 +829,7 @@ options = (\arg opt -> do let url' = case arg of Just u -> u - Nothing -> "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" + Nothing -> "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" return opt { optHTMLMathMethod = MathJax url'}) "URL") "" -- "Use MathJax for HTML math" @@ -838,7 +838,7 @@ options = (\arg opt -> return opt { optKaTeXJS = - arg <|> Just "http://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.0/katex.min.js"}) + arg <|> Just "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.0/katex.min.js"}) "URL") "" -- Use KaTeX for HTML Math @@ -914,7 +914,7 @@ readMetaValue s = case decode (UTF8.fromString s) of usageMessage :: String -> [OptDescr (Opt -> IO Opt)] -> String usageMessage programName = usageInfo (programName ++ " [OPTIONS] [FILES]" ++ "\nInput formats: " ++ - (wrapWords 16 78 $ readers'names) ++ + (wrapWords 16 78 $ readers'names) ++ '\n' : replicate 16 ' ' ++ "[ *only Pandoc's JSON version of native AST]" ++ "\nOutput formats: " ++ (wrapWords 16 78 $ writers'names) ++ @@ -1109,7 +1109,7 @@ main = do mapM_ (\arg -> UTF8.hPutStrLn stdout arg) args exitWith ExitSuccess - let csscdn = "http://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.0/katex.min.css" + let csscdn = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.0/katex.min.css" let mathMethod = case (katexJS, katexStylesheet) of (Nothing, _) -> mathMethod' |