parent
edb0bcc04f
commit
8c47bd63e8
1 changed files with 5 additions and 5 deletions
10
pandoc.hs
10
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'
|
||||
|
|
Loading…
Reference in a new issue