git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #717 from juhp/patch-1
420845aJohn MacFarlane
src/Text/Pandoc/Writers/EPUB.hs+4
@@ -56,7 +56,11 @@ import Network.URI ( unEscapeString )
56import Text.Pandoc.MIME (getMimeType)
56import Text.Pandoc.MIME (getMimeType)
57import Prelude hiding (catch)
57import Prelude hiding (catch)
58import Control.Exception (catch, SomeException)
58import Control.Exception (catch, SomeException)
59+#ifdef MIN_VERSION_blaze-html(0,5,0)
59import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
60import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
61+#else
62+import Text.Blaze.Renderer.Utf8 (renderHtml)
63+#endif
60
64
61-- | Produce an EPUB file from a Pandoc document.
65-- | Produce an EPUB file from a Pandoc document.
62writeEPUB :: WriterOptions -- ^ Writer options
66writeEPUB :: WriterOptions -- ^ Writer options