aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-07 23:20:29 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-07 23:20:29 -0700
commitd752f855827fc6901f851549f8b9029edb1e2177 (patch)
tree7f8a59c4f33ec506a1db4d0bf7364373d52b0e9d /src/Text/Pandoc
parent91c989d6221991a47b1f0a9d180ccf3ce96b3f02 (diff)
downloadpandoc-d752f855827fc6901f851549f8b9029edb1e2177.tar.gz
CommonMark reader: make exts depend on extensions.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/CommonMark.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/CommonMark.hs b/src/Text/Pandoc/Readers/CommonMark.hs
index 9a67c8597..4b24ea374 100644
--- a/src/Text/Pandoc/Readers/CommonMark.hs
+++ b/src/Text/Pandoc/Readers/CommonMark.hs
@@ -43,8 +43,10 @@ import Text.Pandoc.Options
readCommonMark :: PandocMonad m => ReaderOptions -> Text -> m Pandoc
readCommonMark opts s = return $
nodeToPandoc $ commonmarkToNode opts' exts s
- where opts' = [optSmart | enabled Ext_smart]
- exts = [extStrikethrough, extTable, extAutolink]
+ where opts' = [ optSmart | enabled Ext_smart ]
+ exts = [ extStrikethrough | enabled Ext_strikeout ] ++
+ [ extTable | enabled Ext_pipe_tables ] ++
+ [ extAutolink | enabled Ext_autolink_bare_uris ]
enabled x = extensionEnabled x (readerExtensions opts)
nodeToPandoc :: Node -> Pandoc