From 0166b8f8573494beeac603a8037cf16783da8c56 Mon Sep 17 00:00:00 2001 From: Kolen Cheung Date: Sat, 10 Oct 2020 11:11:58 -0700 Subject: [PATCH] Options.hs: defaultMathJaxURL: use tex-chtml-full instead of tex-mml-chtml (#6600) Closes #6599 c.f. https://docs.mathjax.org/en/latest/web/components/combined.html Note that while this use the full variant of the js, this drops the mathml support. That should be okay, because pandoc renders math in HTML as TeX when using mathjax. This change reduces latency. --- src/Text/Pandoc/Options.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index a5d79d319c55..21093e007c12 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -309,7 +309,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/tex-mml-chtml.js" +defaultMathJaxURL = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" defaultKaTeXURL :: Text defaultKaTeXURL = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.11.1/"