aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-09-22 22:18:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-09-22 22:18:38 -0700
commit7ab2f4a61d43928f597cad4916d25a94a5bde0e8 (patch)
treee4005b088927e0526d7432a06991c0a11272a533 /src/Text/Pandoc
parentd6dbbb89d071b5e3b377467c924bde61879589f2 (diff)
downloadpandoc-7ab2f4a61d43928f597cad4916d25a94a5bde0e8.tar.gz
HTML writer: pass through inline math environments with KaTeX.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 3592bd2d4..03d182f5e 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -1636,6 +1636,7 @@ isMathEnvironment s = "\\begin{" `T.isPrefixOf` s &&
allowsMathEnvironments :: HTMLMathMethod -> Bool
allowsMathEnvironments (MathJax _) = True
+allowsMathEnvironments (KaTeX _) = True
allowsMathEnvironments MathML = True
allowsMathEnvironments (WebTeX _) = True
allowsMathEnvironments _ = False