@@ -115,7 +115,7 @@ writeHtml :: PandocMonad m => WriterOptions -> Pandoc -> m Html
115writeHtml opts d = do
115writeHtml opts d = do
116 (body, context) <- evalStateT (pandocToHtml opts d) defaultWriterState
116 (body, context) <- evalStateT (pandocToHtml opts d) defaultWriterState
117 return $ case writerTemplate opts of
117 return $ case writerTemplate opts of
118− Nothing -> renderHtml body
118+ Nothing -> body
119 Just tpl -> renderTemplate' tpl $
119 Just tpl -> renderTemplate' tpl $
120 defField "body" (renderHtml body) context
120 defField "body" (renderHtml body) context