Options: Add /tex-mml-chtml.js
to defaultMathJaxURL.
Previously we added this in processing command line options, but not in processing defaults files, which was inconsistent. Cloess #6593.
This commit is contained in:
parent
57417feaf4
commit
d8ad766d17
2 changed files with 2 additions and 3 deletions
|
@ -699,8 +699,7 @@ options =
|
|||
, Option "" ["mathjax"]
|
||||
(OptArg
|
||||
(\arg opt -> do
|
||||
let url' = maybe (defaultMathJaxURL <>
|
||||
"tex-mml-chtml.js") T.pack arg
|
||||
let url' = maybe defaultMathJaxURL T.pack arg
|
||||
return opt { optHTMLMathMethod = MathJax url'})
|
||||
"URL")
|
||||
"" -- "Use MathJax for HTML math"
|
||||
|
|
|
@ -308,7 +308,7 @@ isEnabled :: HasSyntaxExtensions a => Extension -> a -> Bool
|
|||
isEnabled ext opts = ext `extensionEnabled` getExtensions opts
|
||||
|
||||
defaultMathJaxURL :: Text
|
||||
defaultMathJaxURL = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/"
|
||||
defaultMathJaxURL = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
|
||||
|
||||
defaultKaTeXURL :: Text
|
||||
defaultKaTeXURL = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/"
|
||||
|
|
Loading…
Add table
Reference in a new issue