aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2020-04-03 11:06:41 -0700
committerJohn MacFarlane <[email protected]>2020-05-14 09:00:35 -0700
commitcc7793847f3ad0e1fce1629b786521e73dd606fe (patch)
tree1c639459bd2e5f33b1031559b11f56cf17f6ae07
parent5b01208434790595da10f5e4def4c76776852ed3 (diff)
Update to latest commonmark-hs.
-rw-r--r--src/Text/Pandoc/Readers/CommonMark.hs3
-rw-r--r--stack.yaml2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/CommonMark.hs b/src/Text/Pandoc/Readers/CommonMark.hs
index 6395b87d1..93951c600 100644
--- a/src/Text/Pandoc/Readers/CommonMark.hs
+++ b/src/Text/Pandoc/Readers/CommonMark.hs
@@ -37,7 +37,8 @@ readCommonMark opts s = do
Left err -> throwError $ PandocParsecError s err
Right (Cm bls :: Cm () Blocks) -> return $ B.doc bls
where
- exts = [ smartPunctuationSpec | isEnabled Ext_smart opts ] ++
+ exts = [ hardLineBreaksSpec | isEnabled Ext_hard_line_breaks opts ] ++
+ [ smartPunctuationSpec | isEnabled Ext_smart opts ] ++
[ strikethroughSpec | isEnabled Ext_strikeout opts ] ++
[ superscriptSpec | isEnabled Ext_superscript opts ] ++
[ subscriptSpec | isEnabled Ext_subscript opts ] ++
diff --git a/stack.yaml b/stack.yaml
index ff3915ee4..fc5648d59 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -31,7 +31,7 @@ extra-deps:
- HsYAML-aeson-0.2.0.0
- doctemplates-0.8.2
- git: https://github.com/jgm/commonmark-hs
- commit: 73390976b8ec9efd6d496a58f77a7ced768298fd
+ commit: 96a20cba162d9a8379aa29705a3983ce2976f371
subdirs:
- commonmark
- commonmark-extensions