Basic changes for MathJax 3.
commit3c7f1bf96cb843ade02bd96f8a070a3006d2a11a
authorzorkow <volker.sorge@gmail.com>
dateSun 6 Oct 2019, 14:10 (7 years ago)
parent8a77bbf
src/Text/Pandoc/App/CommandLineOptions.hs+1−1
@@ -699,7 +699,7 @@ options =
699699 (OptArg
700700 (\arg opt -> do
701701 let url' = fromMaybe (defaultMathJaxURL ++
702− "MathJax.js?config=TeX-AMS_CHTML-full") arg
702+ "tex-mml-chtml.js") arg
703703 return opt { optHTMLMathMethod = MathJax url'})
704704 "URL")
705705 "" -- "Use MathJax for HTML math"
src/Text/Pandoc/Writers/Math.hs+1−1
@@ -52,7 +52,7 @@ convertMath writer mt str =
5252 InlineMath -> DisplayInline
5353
5454defaultMathJaxURL :: String
55−defaultMathJaxURL = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/"
55+defaultMathJaxURL = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/"
5656
5757defaultKaTeXURL :: String
5858defaultKaTeXURL = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/"