aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-09-01 15:05:51 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-09-01 15:05:51 -0700
commit8b0052ba5b0578814a5aca14a0e02874a10cf947 (patch)
tree34a1afa98807e36e4ceb3a58932a4187a48e0a3d /src
parent8e61a6214ffda2f76980dbb36542c1d36951150c (diff)
downloadpandoc-8b0052ba5b0578814a5aca14a0e02874a10cf947.tar.gz
Mathjax in HTML slide shows: include explicit "Typeset" instruction.
This seems to be needed for some formats (e.g. slideous) and won't hurt in others. Closes #966.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 25079574e..63b466af3 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -143,7 +143,8 @@ pandocToHtml opts (Pandoc meta blocks) = do
MathJax url ->
H.script ! A.src (toValue url)
! A.type_ "text/javascript"
- $ mempty
+ $ preEscapedString
+ "MathJax.Hub.Queue([\"Typeset\",MathJax.Hub]);"
JsMath (Just url) ->
H.script ! A.src (toValue url)
! A.type_ "text/javascript"