aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-10-13 11:31:33 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-10-13 11:31:33 -0700
commit2ae7f5e2a0a741fa4822448ad378280f77ab0dd5 (patch)
treec51e3d222a24f715f204dfde629c39f4ac938aa7 /src
parent1a55c8f5de357f36885e0ac5c50cdc8b6cafc211 (diff)
downloadpandoc-2ae7f5e2a0a741fa4822448ad378280f77ab0dd5.tar.gz
HTML writer: Insert command to typeset mathjax for slideous output.
Closes #966.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index f6775b13a..cee07cff5 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -144,7 +144,11 @@ pandocToHtml opts (Pandoc meta blocks) = do
MathJax url ->
H.script ! A.src (toValue url)
! A.type_ "text/javascript"
- $ mempty
+ $ case writerSlideVariant opts of
+ SlideousSlides ->
+ preEscapedString
+ "MathJax.Hub.Queue([\"Typeset\",MathJax.Hub]);"
+ _ -> mempty
JsMath (Just url) ->
H.script ! A.src (toValue url)
! A.type_ "text/javascript"