git.iko.soy/typeable/pandoc
on master help sign in
Muse reader: simplify paragraph parsing

Blanklines are already consumed during block parsing, there is no need to check for them specifically.

commit1dd5018a807a80866c35d73b9c0131cc9bc16cb5 authorAlexander Krotov <ilabdsf@gmail.com> dateSun 21 Jan 2018, 00:47 (9 years ago) parent957c0e1
1 file changed+1−2
src/Text/Pandoc/Readers/Muse.hs+1−2
src/Text/Pandoc/Readers/Muse.hs+1−2
@@ -341,9 +341,8 @@ para = do
341341 let f = if st /= ListItemState && indent >= 2 && indent < 6 then B.blockQuote else id
342342 fmap (f . B.para) . trimInlinesF . mconcat <$> many1Till inline endOfParaElement
343343 where
344− endOfParaElement = lookAhead $ endOfInput <|> endOfPara <|> newBlockElement
344+ endOfParaElement = lookAhead $ endOfInput <|> newBlockElement
345345 endOfInput = try $ skipMany blankline >> skipSpaces >> eof
346− endOfPara = try $ blankline >> skipMany1 blankline
347346 newBlockElement = try $ blankline >> void blockElements
348347
349348noteMarker :: PandocMonad m => MuseParser m String