aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzorkow <volker.sorge@gmail.com>2019-10-06 14:10:09 +0530
committerJohn MacFarlane <jgm@berkeley.edu>2019-10-09 14:30:25 -0700
commit3c7f1bf96cb843ade02bd96f8a070a3006d2a11a (patch)
tree3890169c18fb062838da6c9a97e1483d7642eb4d /src
parent8a77bbf6eb34fe952bd0b280311ff1bd3e429d6b (diff)
downloadpandoc-3c7f1bf96cb843ade02bd96f8a070a3006d2a11a.tar.gz
Basic changes for MathJax 3.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs2
-rw-r--r--src/Text/Pandoc/Writers/Math.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index e9582eaf2..655ccfbac 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -699,7 +699,7 @@ options =
(OptArg
(\arg opt -> do
let url' = fromMaybe (defaultMathJaxURL ++
- "MathJax.js?config=TeX-AMS_CHTML-full") arg
+ "tex-mml-chtml.js") arg
return opt { optHTMLMathMethod = MathJax url'})
"URL")
"" -- "Use MathJax for HTML math"
diff --git a/src/Text/Pandoc/Writers/Math.hs b/src/Text/Pandoc/Writers/Math.hs
index 61decf2df..a84f74f00 100644
--- a/src/Text/Pandoc/Writers/Math.hs
+++ b/src/Text/Pandoc/Writers/Math.hs
@@ -52,7 +52,7 @@ convertMath writer mt str =
InlineMath -> DisplayInline
defaultMathJaxURL :: String
-defaultMathJaxURL = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/"
+defaultMathJaxURL = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/"
defaultKaTeXURL :: String
defaultKaTeXURL = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/"