diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-10-21 22:20:47 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-10-21 22:20:47 -0700 |
commit | 8448eb3b6915763d51ee4632c092ae6d6a403506 (patch) | |
tree | bfc528fdfd9956467e74abf754086ffd9f54a215 /src/Text | |
parent | 382763a7db3f886a598f87b770e9923a2c8b4454 (diff) | |
download | pandoc-8448eb3b6915763d51ee4632c092ae6d6a403506.tar.gz |
Man reader: .IP can also be used for list continuations.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Man.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs index c3ca1b76e..3e9b8d6bb 100644 --- a/src/Text/Pandoc/Readers/Man.hs +++ b/src/Text/Pandoc/Readers/Man.hs @@ -712,11 +712,12 @@ parseList = try $ do Ordered lattr -> orderedListWith lattr (x:xs) continuation :: PandocMonad m => ManParser m Blocks -continuation = do +continuation = (do mmacro "RS" bs <- mconcat <$> many (notFollowedBy (mmacro "RE") >> parseBlock) mmacro "RE" - return bs + return bs) + <|> mconcat <$> (many1 (try (bareIP *> parsePara))) definitionListItem :: PandocMonad m => ManParser m (Inlines, [Blocks]) |