From 8c47bd63e86ef79efaa98b36af3b3ceb093cc035 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 9 Jun 2015 12:19:06 -0700 Subject: Use https: for mathjax/katex/google-charts CDNs. Closes #1920. --- pandoc.hs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandoc.hs b/pandoc.hs index b90e8a09d..8aa85befc 100644 --- a/pandoc.hs +++ b/pandoc.hs @@ -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' -- cgit v1.2.3