aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-03-19 21:27:35 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2020-03-19 21:27:35 +0100
commit44f8c2725eac93ac0df503cb338ba6b076a0ee20 (patch)
tree735117fd8ffb8fb86e04b83c4ca10f3f24d600ea
parent81d46435f6c60d4011de46c3d81c127bc293468d (diff)
downloadpandoc-44f8c2725eac93ac0df503cb338ba6b076a0ee20.tar.gz
Jira reader: fix parsing of tables without preceding blankline
A bug was fixed which caused faulty parsing if a table was not preceded by a newline and the first table cell had no space after the initial `|` characters. Fixes: #6198
-rw-r--r--pandoc.cabal2
-rw-r--r--stack.yaml2
-rw-r--r--test/Tests/Readers/Jira.hs5
3 files changed, 7 insertions, 2 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 27aaa7b0f..43f3adf8b 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -412,7 +412,7 @@ library
blaze-html >= 0.9 && < 0.10,
blaze-markup >= 0.8 && < 0.9,
vector >= 0.10 && < 0.13,
- jira-wiki-markup >= 1.1.2 && < 1.2,
+ jira-wiki-markup >= 1.1.3 && < 1.2,
hslua >= 1.0.1 && < 1.1,
hslua-module-system >= 0.2 && < 0.3,
hslua-module-text >= 0.2 && < 0.3,
diff --git a/stack.yaml b/stack.yaml
index 0a2fa8fc4..b56beb764 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -20,7 +20,7 @@ extra-deps:
- regex-pcre-builtin-0.95.0.8.8.35
- doclayout-0.3
- emojis-0.1
-- jira-wiki-markup-1.1.2
+- jira-wiki-markup-1.1.3
- HsYAML-0.2.0.0
- HsYAML-aeson-0.2.0.0
- doctemplates-0.8.1
diff --git a/test/Tests/Readers/Jira.hs b/test/Tests/Readers/Jira.hs
index 4ed8194fd..299db7bed 100644
--- a/test/Tests/Readers/Jira.hs
+++ b/test/Tests/Readers/Jira.hs
@@ -77,6 +77,11 @@ tests =
simpleTable []
[ [para "language", para "haskell", para "lua"]
, [para "type", para "static", para "dynamic"]]
+
+ , "table after paragraph" =:
+ "*tabletest*\n||Name|\n|Test|\n" =?>
+ para (strong "tabletest") <>
+ simpleTable [para "Name"] [[para "Test"]]
]
, testGroup "inlines"