Muse reader: simplify paragraph parsing
Blanklines are already consumed during block parsing, there is no need to check for them specifically.
This commit is contained in:
parent
957c0e110d
commit
1dd5018a80
1 changed files with 1 additions and 2 deletions
|
@ -341,9 +341,8 @@ para = do
|
|||
let f = if st /= ListItemState && indent >= 2 && indent < 6 then B.blockQuote else id
|
||||
fmap (f . B.para) . trimInlinesF . mconcat <$> many1Till inline endOfParaElement
|
||||
where
|
||||
endOfParaElement = lookAhead $ endOfInput <|> endOfPara <|> newBlockElement
|
||||
endOfParaElement = lookAhead $ endOfInput <|> newBlockElement
|
||||
endOfInput = try $ skipMany blankline >> skipSpaces >> eof
|
||||
endOfPara = try $ blankline >> skipMany1 blankline
|
||||
newBlockElement = try $ blankline >> void blockElements
|
||||
|
||||
noteMarker :: PandocMonad m => MuseParser m String
|
||||
|
|
Loading…
Reference in a new issue