aboutsummaryrefslogtreecommitdiff
path: root/trypandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-19 11:10:29 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-19 11:10:29 +0200
commitb3041de2fc05b26421c5be4df374ec84aafa11ee (patch)
treeb9381ae7181b8423919cbdc3836f830806d801b5 /trypandoc
parentaface549a03c67a5df335863d3b3d00c9c4f3092 (diff)
downloadpandoc-b3041de2fc05b26421c5be4df374ec84aafa11ee.tar.gz
Text.Pandoc.Writers.Math: export defaultMathJaxURL, defaultKaTeXURL.
This will ensure that we only need to update these in one place. (Currently, for example, the mathjax URL is used in both App and trypandoc.) Closes #3685.
Diffstat (limited to 'trypandoc')
-rw-r--r--trypandoc/trypandoc.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/trypandoc/trypandoc.hs b/trypandoc/trypandoc.hs
index d8652079a..b8b821883 100644
--- a/trypandoc/trypandoc.hs
+++ b/trypandoc/trypandoc.hs
@@ -56,7 +56,8 @@ checkLength t =
writerOpts :: WriterOptions
writerOpts = def { writerReferenceLinks = True,
writerEmailObfuscation = NoObfuscation,
- writerHTMLMathMethod = MathJax "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML",
+ writerHTMLMathMethod = MathJax (defaultMathJaxURL ++
+ "MathJax.js?config=TeX-AMS_CHTML-full"),
writerHighlightStyle = Just pygments }
readerOpts :: ReaderOptions