From 3c7f1bf96cb843ade02bd96f8a070a3006d2a11a Mon Sep 17 00:00:00 2001 From: zorkow Date: Sun, 6 Oct 2019 14:10:09 +0530 Subject: Basic changes for MathJax 3. --- src/Text/Pandoc/App/CommandLineOptions.hs | 2 +- src/Text/Pandoc/Writers/Math.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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/" -- cgit v1.2.3