aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-21 22:20:47 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-21 22:20:47 -0700
commit8448eb3b6915763d51ee4632c092ae6d6a403506 (patch)
treebfc528fdfd9956467e74abf754086ffd9f54a215 /src/Text/Pandoc
parent382763a7db3f886a598f87b770e9923a2c8b4454 (diff)
downloadpandoc-8448eb3b6915763d51ee4632c092ae6d6a403506.tar.gz
Man reader: .IP can also be used for list continuations.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Man.hs5
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])