HTML writer: Insert command to typeset mathjax for slideous output.
Closes #966.
This commit is contained in:
parent
1a55c8f5de
commit
2ae7f5e2a0
1 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,11 @@ pandocToHtml opts (Pandoc meta blocks) = do
|
||||||
MathJax url ->
|
MathJax url ->
|
||||||
H.script ! A.src (toValue url)
|
H.script ! A.src (toValue url)
|
||||||
! A.type_ "text/javascript"
|
! A.type_ "text/javascript"
|
||||||
$ mempty
|
$ case writerSlideVariant opts of
|
||||||
|
SlideousSlides ->
|
||||||
|
preEscapedString
|
||||||
|
"MathJax.Hub.Queue([\"Typeset\",MathJax.Hub]);"
|
||||||
|
_ -> mempty
|
||||||
JsMath (Just url) ->
|
JsMath (Just url) ->
|
||||||
H.script ! A.src (toValue url)
|
H.script ! A.src (toValue url)
|
||||||
! A.type_ "text/javascript"
|
! A.type_ "text/javascript"
|
||||||
|
|
Loading…
Add table
Reference in a new issue