Basic changes for MathJax 3.

This commit is contained in:
zorkow 2019-10-06 14:10:09 +05:30 committed by John MacFarlane
parent 8a77bbf6eb
commit 3c7f1bf96c
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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/"