From 8448eb3b6915763d51ee4632c092ae6d6a403506 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 21 Oct 2018 22:20:47 -0700 Subject: Man reader: .IP can also be used for list continuations. --- src/Text/Pandoc/Readers/Man.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Text') 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]) -- cgit v1.2.3