git.iko.soy/typeable/pandoc
on master help sign in
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.

commit8b0052ba5b0578814a5aca14a0e02874a10cf947 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 1 Sep 2013, 15:05 (13 years ago) parent8e61a62
1 file changed+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
@@ -143,7 +143,8 @@ pandocToHtml opts (Pandoc meta blocks) = do
143143 MathJax url ->
144144 H.script ! A.src (toValue url)
145145 ! A.type_ "text/javascript"
146− $ mempty
146+ $ preEscapedString
147+ "MathJax.Hub.Queue([\"Typeset\",MathJax.Hub]);"
147148 JsMath (Just url) ->
148149 H.script ! A.src (toValue url)
149150 ! A.type_ "text/javascript"