From c468272e340233ef0bdd75c9422c6167e05d5898 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 21 Feb 2012 09:00:30 -0800 Subject: [PATCH] HTML writer: Don't escape contents of EQ tags with --gladtex. This fixes a regression from 1.8.x. Closes #428. --- src/Text/Pandoc/Writers/HTML.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index f35b29370..9dd29f183 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -610,8 +610,8 @@ inlineToHtml opts inline = DisplayMath -> brtag >> m >> brtag GladTeX -> return $ case t of - InlineMath -> preEscapedString "" >> toHtml str >> preEscapedString "" - DisplayMath -> preEscapedString "" >> toHtml str >> preEscapedString "" + InlineMath -> preEscapedString $ "" ++ str ++ "" + DisplayMath -> preEscapedString $ "" ++ str ++ "" MathML _ -> do let dt = if t == InlineMath then DisplayInline