jira-wiki-markup 1.1.2 → 1.1.3
raw patch · 4 files changed
+28/−9 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +18/−7
- jira-wiki-markup.cabal +1/−1
- src/Text/Jira/Parser/Core.hs +1/−1
- test/Text/Jira/Parser/BlockTests.hs +8/−0
CHANGELOG.md view
@@ -1,10 +1,21 @@-# Changelog+Changelog+========= `jira-wiki-markup` uses [PVP Versioning][1]. The changelog is available [on GitHub][2]. +1.1.3+-----++Released 2020-03-19++* Fixed table detection in endOfParagraph parser: Tables were+ expected to have a space between the leading pipe(s) and the+ cell content. Lines like `||Name|` were erroneously not+ recognized as the beginning of a new block.+ 1.1.2-=====+----- Released 2020-03-18 @@ -13,7 +24,7 @@ become part of a smiley. 1.1.1-=====+----- Released 2020-03-18 @@ -27,7 +38,7 @@ characters. 1.1.0-=====+----- Released 2020-03-13. @@ -37,7 +48,7 @@ * New constructor `ColorInline` for type `Inline` (API change). 1.0.0-=====+----- Released 2019-12-17. @@ -65,12 +76,12 @@ * CI runs also test GHC 8.8. 0.1.1-=====+----- * Ensure proper parsing of backslash-escaped characters. 0.1.0-=====+----- * Initially created.
jira-wiki-markup.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.0 name: jira-wiki-markup-version: 1.1.2+version: 1.1.3 synopsis: Handle Jira wiki markup description: Parse jira wiki text into an abstract syntax tree for easy transformation to other formats.
src/Text/Jira/Parser/Core.hs view
@@ -115,7 +115,7 @@ where headerStart = void $ char 'h' *> oneOf "123456" <* char '.' listItemStart = void $ skipSpaces *> many1 (oneOf "#*-") <* char ' '- tableStart = void $ skipSpaces *> many1 (char '|') *> char ' '+ tableStart = void $ skipSpaces *> many1 (char '|') panelStart = void $ char '{' *> choice (map (try . string) blockNames) horizontalRule = void $ try (string "----") *> blankline
test/Text/Jira/Parser/BlockTests.hs view
@@ -373,6 +373,14 @@ Right ( List CircleBullets [[Para [Str "foo"]]] , List CircleBullets [[Para [Str "bar"]]]) + , testCase "para before table" $+ parseJira ((,) <$> block <*> block) "tabletest\n||Name|\n|Test|\n" @?=+ Right ( Para [Str "tabletest"]+ , Table [ Row [HeaderCell [Para [Str "Name"]]]+ , Row [BodyCell [Para [Str "Test"]]]+ ]+ )+ , testCase "para after table" $ parseJira ((,) <$> block <*> block) "|| point |\nhuh\n" @?= Right ( Table [Row [HeaderCell [Para [Str "point"]]]]