aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Man.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Readers/Man.hs')
-rw-r--r--src/Text/Pandoc/Readers/Man.hs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs
index 8773fb65c..d3e47f26a 100644
--- a/src/Text/Pandoc/Readers/Man.hs
+++ b/src/Text/Pandoc/Readers/Man.hs
@@ -102,13 +102,13 @@ parseMan = do
parseBlock :: PandocMonad m => ManParser m Blocks
parseBlock = choice [ parseList
, parseDefinitionList
- , parseBlockQuote
+ , parseHeader
+ , parseTable
, parseTitle
+ , parseCodeBlock
+ , parseBlockQuote
, parseNewParagraph
, parsePara
- , parseCodeBlock
- , parseHeader
- , parseTable
, skipUnkownMacro
]
@@ -470,7 +470,9 @@ parseList = try $ do
continuation :: PandocMonad m => ManParser m Blocks
continuation =
mconcat <$> (mmacro "RS" *> manyTill parseBlock (endmacro "RE"))
- <|> mconcat <$> many1 (try (bareIP *> parsePara))
+ <|> mconcat <$> many1 ( try (bareIP *> parsePara)
+ <|> try (bareIP *> parseCodeBlock)
+ )
definitionListItem :: PandocMonad m
=> ManParser m (Inlines, [Blocks])