Insert CDATA around inline js/css in HTML, slidy.

This commit is contained in:
John MacFarlane 2011-07-24 08:23:38 -07:00
parent 835dc412d2
commit c872d9f7ef
2 changed files with 3 additions and 2 deletions

View file

@ -142,7 +142,8 @@ pandocToHtml opts (Pandoc (Meta title' authors' date') blocks) = do
_ -> case lookup "mathml-script" (writerVariables opts) of
Just s ->
script ! [thetype "text/javascript"] <<
primHtml s
primHtml ("/*<![CDATA[*/\n" ++ s ++
"/*]]>*/\n")
Nothing -> noHtml
else noHtml
let newvars = [("highlighting-css", defaultHighlightingCss) |

@ -1 +1 @@
Subproject commit 8cb5fef740725ee51ffed5022faa097f21336bcd
Subproject commit 8cd8b19598fa898498a7883d081f51615aa5fc12