mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 17:56:32 +00:00
Muse reader: simplify para implementation (#3761)
This commit is contained in:
committed by
John MacFarlane
parent
4cbbc9dd58
commit
b95f391beb
@@ -247,9 +247,7 @@ commentTag :: PandocMonad m => MuseParser m (F Blocks)
|
||||
commentTag = parseHtmlContent "comment" block >> return mempty
|
||||
|
||||
para :: PandocMonad m => MuseParser m (F Blocks)
|
||||
para = do
|
||||
res <- trimInlinesF . mconcat <$> many1Till inline endOfParaElement
|
||||
return $ B.para <$> res
|
||||
para = liftM B.para . trimInlinesF . mconcat <$> many1Till inline endOfParaElement
|
||||
where
|
||||
endOfParaElement = lookAhead $ endOfInput <|> endOfPara <|> newBlockElement
|
||||
endOfInput = try $ skipMany blankline >> skipSpaces >> eof
|
||||
|
||||
Reference in New Issue
Block a user