aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs4
-rw-r--r--test/Tests/Readers/Muse.hs13
2 files changed, 15 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs
index bc9da26cb..c1ea1354b 100644
--- a/src/Text/Pandoc/Readers/Muse.hs
+++ b/src/Text/Pandoc/Readers/Muse.hs
@@ -295,9 +295,9 @@ withListContext p = do
listContinuation :: PandocMonad m => Int -> MuseParser m String
listContinuation markerLength = try $ do
- result <- many1 $ listLine markerLength
blanks <- many1 blankline
- return $ concat result ++ blanks
+ result <- many1 $ listLine markerLength
+ return $ blanks ++ concat result
listStart :: PandocMonad m => MuseParser m Int -> MuseParser m Int
listStart marker = try $ do
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 5a896da55..85d6f5c48 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -260,5 +260,18 @@ tests =
]
]
]
+ , "List continuation" =:
+ T.unlines
+ [ " - a"
+ , ""
+ , " b"
+ , ""
+ , " c"
+ ] =?>
+ bulletList [ mconcat [ para "a"
+ , para "b"
+ , para "c"
+ ]
+ ]
]
]