packages feed

djot 0.1.1.1 → 0.1.1.2

raw patch · 4 files changed

+29/−5 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for djot +## 0.1.1.2 -- 2024-03-14++* Fix bug parsing regular paragraphs after list (#4).+ ## 0.1.1.1 -- 2024-03-03  * Revert "Djot.Blocks: use ByteString directly in `toIdentifier` (#1)"
djot.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               djot-version:            0.1.1.1+version:            0.1.1.2 synopsis:           Parser and renderer for djot light markup syntax. description:        Djot (<https://djot.net>) is a light markup language.                     This package provides a data structure to represent
src/Djot/Blocks.hs view
@@ -970,10 +970,12 @@      tip <- getTip -    when (blockContainsBlock (containerSpec tip) == Just Normal) $ do-      -- add a paragraph container-      skipMany spaceOrTab-      blockStart paraSpec+    case blockContainsBlock (containerSpec tip) of+      Just bt | bt == Normal || bt == ListItem -> do+        -- add a paragraph container+        skipMany spaceOrTab+        blockStart paraSpec+      _ -> pure ()    !curline <- sourceLine   !curcolumn <- sourceColumn
test/regression.test view
@@ -100,3 +100,21 @@ </section> ``` +Issue #4++```+1. one+2. two++ok+.+<ol>+<li>+one+</li>+<li>+two+</li>+</ol>+<p>ok</p>+```