@@ -59,8 +59,7 @@ import Text.DocTemplates (Context(..))
59import Text.Pandoc.Walk
59import Text.Pandoc.Walk
60import Text.Pandoc.Writers.Math
60import Text.Pandoc.Writers.Math
61import Text.Pandoc.Writers.Shared
61import Text.Pandoc.Writers.Shared
62−import Text.Pandoc.XML (escapeStringForXML, fromEntities,
62+import Text.Pandoc.XML (escapeStringForXML, fromEntities, toEntities)
63− toEntities, toHtml5Entities)
64#if MIN_VERSION_blaze_markup(0,6,3)
63#if MIN_VERSION_blaze_markup(0,6,3)
66import Text.Blaze.Internal (preEscapedString, preEscapedText)
65import Text.Blaze.Internal (preEscapedString, preEscapedText)
@@ -207,10 +206,7 @@ writeHtmlString' :: PandocMonad m
207writeHtmlString' st opts d = do
206writeHtmlString' st opts d = do
208 (body, context) <- evalStateT (pandocToHtml opts d) st
207 (body, context) <- evalStateT (pandocToHtml opts d) st
209 (if writerPreferAscii opts
208 (if writerPreferAscii opts
212− then toHtml5Entities
213− else toEntities
209+ then toEntities
214 else id) <$>
210 else id) <$>
215 case writerTemplate opts of
211 case writerTemplate opts of
216 Nothing -> return $ renderHtml' body
212 Nothing -> return $ renderHtml' body