From c872d9f7ef97a77adf0778047d9a30fb15815346 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 24 Jul 2011 08:23:38 -0700 Subject: Insert CDATA around inline js/css in HTML, slidy. --- src/Text/Pandoc/Writers/HTML.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 4c82f2c85..fe6ee5db4 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -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 ("/**/\n") Nothing -> noHtml else noHtml let newvars = [("highlighting-css", defaultHighlightingCss) | -- cgit v1.2.3