From 634696fb8784dd1f3f294e0773ce55c64eef3e00 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 4 Dec 2022 10:19:54 -0800 Subject: HTML writer: remove obsolete stuff about mathml-script. This was a shim we used to include for mathml support. We don't do anything with this any more, so this is dead code. --- src/Text/Pandoc/Writers/HTML.hs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index 19186e91c..a327f07f3 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -341,15 +341,7 @@ pandocToHtml opts (Pandoc meta blocks) = do H.link ! A.rel "stylesheet" ! A.href (toValue $ url <> "katex.min.css") - _ -> case lookupContext "mathml-script" - (writerVariables opts) of - Just s | not (stHtml5 st) -> - H.script ! A.type_ "text/javascript" - $ preEscapedString - ("/* T.unpack s <> - "/*]]>*/\n") - | otherwise -> mempty - Nothing -> mempty + _ -> mempty let mCss :: Maybe [Text] = lookupContext "css" metadata let context :: Context Text context = (if stHighlighting st -- cgit v1.2.3