aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-11-02 21:04:32 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-11-02 21:04:32 -0700
commit63bed5dc2e704fff06d1273a030ea580a1a7db0d (patch)
tree0689c3cd8883e1c5fa6180c2fd7359738a8ce3d7 /src/Text/Pandoc
parent5b7d27912a819c5c816857590859acef6fee2113 (diff)
downloadpandoc-63bed5dc2e704fff06d1273a030ea580a1a7db0d.tar.gz
HTML writer: Use XHtml5 only if blaze version current enough.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index eba679af2..974c37d84 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -53,7 +53,11 @@ import Text.Blaze.Internal(preEscapedString)
#else
import Text.Blaze
#endif
+#if MIN_VERSION_blaze_html(0,5,1)
import qualified Text.Blaze.XHtml5 as H5
+#else
+import qualified Text.Blaze.Html5 as H5
+#endif
import qualified Text.Blaze.XHtml1.Transitional as H
import qualified Text.Blaze.XHtml1.Transitional.Attributes as A
import Text.Blaze.Renderer.String (renderHtml)