git.iko.soy/typeable/pandoc
on master help sign in
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

commit44f8c2725eac93ac0df503cb338ba6b076a0ee20 authorAlbert Krewinkel <albert@zeitkraut.de> dateThu 19 Mar 2020, 21:27 (7 years ago) parent81d4643
3 files changed+7−2
pandoc.cabal+1−1 stack.yaml+1−1 test/Tests/Readers/Jira.hs+5
pandoc.cabal+1−1
@@ -412,7 +412,7 @@ library
412412 blaze-html >= 0.9 && < 0.10,
413413 blaze-markup >= 0.8 && < 0.9,
414414 vector >= 0.10 && < 0.13,
415− jira-wiki-markup >= 1.1.2 && < 1.2,
415+ jira-wiki-markup >= 1.1.3 && < 1.2,
416416 hslua >= 1.0.1 && < 1.1,
417417 hslua-module-system >= 0.2 && < 0.3,
418418 hslua-module-text >= 0.2 && < 0.3,
stack.yaml+1−1
@@ -20,7 +20,7 @@ extra-deps:
2020- regex-pcre-builtin-0.95.0.8.8.35
2121- doclayout-0.3
2222- emojis-0.1
23−- jira-wiki-markup-1.1.2
23+- jira-wiki-markup-1.1.3
2424- HsYAML-0.2.0.0
2525- HsYAML-aeson-0.2.0.0
2626- doctemplates-0.8.1
test/Tests/Readers/Jira.hs+5
@@ -77,6 +77,11 @@ tests =
7777 simpleTable []
7878 [ [para "language", para "haskell", para "lua"]
7979 , [para "type", para "static", para "dynamic"]]
80+
81+ , "table after paragraph" =:
82+ "*tabletest*\n||Name|\n|Test|\n" =?>
83+ para (strong "tabletest") <>
84+ simpleTable [para "Name"] [[para "Test"]]
8085 ]
8186
8287 , testGroup "inlines"