Changed --mathjax
to link to mathjax CDN by default.
`--mathjax` now takes an optional URL argument. If it is not provided, pandoc links directly to the (secure) mathjax CDN. This is what they now recommend. Thanks to dsanson.
This commit is contained in:
parent
81c403d2d1
commit
310697ce7e
2 changed files with 9 additions and 3 deletions
4
README
4
README
|
@ -238,9 +238,11 @@ Options
|
|||
no link to the jsMath load script will be inserted; it is then
|
||||
up to the author to provide such a link in the HTML template.
|
||||
|
||||
`--mathjax=`*URL*
|
||||
`--mathjax`[=*URL*]
|
||||
: Use [MathJax] to display embedded TeX math in HTML output.
|
||||
The *URL* should point to the `MathJax.js` load script.
|
||||
If a *URL* is not provided, a link to the MathJax CDN will
|
||||
be inserted.
|
||||
|
||||
`--gladtex`
|
||||
: Enclose TeX math in `<eq>` tags in HTML output. These can then
|
||||
|
|
|
@ -288,8 +288,12 @@ options =
|
|||
"" -- "Use jsMath for HTML math"
|
||||
|
||||
, Option "" ["mathjax"]
|
||||
(ReqArg
|
||||
(\arg opt -> return opt { optHTMLMathMethod = MathJax arg})
|
||||
(OptArg
|
||||
(\arg opt -> do
|
||||
let url' = case arg of
|
||||
Just u -> u
|
||||
Nothing -> "https://d3eoax9i5htok0.cloudfront.net/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
|
||||
return opt { optHTMLMathMethod = MathJax url'})
|
||||
"URL")
|
||||
"" -- "Use MathJax for HTML math"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue