From e9a270d03b4eb1d7deb807d0bd2a940dde5c9fde Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 31 Jan 2012 10:47:48 -0800 Subject: Don't include mathml javascript for html5 output. mathml is supposed to be supported in HTML5. --- src/Text/Pandoc/Writers/HTML.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 8ca7aca62..f46d08570 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -147,10 +147,11 @@ pandocToHtml opts (Pandoc (Meta title' authors' date') blocks) = do ! A.type_ "text/javascript" $ mempty _ -> case lookup "mathml-script" (writerVariables opts) of - Just s -> + Just s | not (writerHtml5 opts) -> H.script ! A.type_ "text/javascript" $ preEscapedString ("/**/\n") + | otherwise -> mempty Nothing -> mempty else mempty let newvars = [("highlighting-css", -- cgit v1.2.3