git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: Insert command to typeset mathjax for slideous output.

Closes #966.

commit2ae7f5e2a0a741fa4822448ad378280f77ab0dd5 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 13 Oct 2013, 11:31 (13 years ago) parent1a55c8f
1 file changed+5−1
src/Text/Pandoc/Writers/HTML.hs+5−1
src/Text/Pandoc/Writers/HTML.hs+5−1
@@ -144,7 +144,11 @@ pandocToHtml opts (Pandoc meta blocks) = do
144144 MathJax url ->
145145 H.script ! A.src (toValue url)
146146 ! A.type_ "text/javascript"
147− $ mempty
147+ $ case writerSlideVariant opts of
148+ SlideousSlides ->
149+ preEscapedString
150+ "MathJax.Hub.Queue([\"Typeset\",MathJax.Hub]);"
151+ _ -> mempty
148152 JsMath (Just url) ->
149153 H.script ! A.src (toValue url)
150154 ! A.type_ "text/javascript"