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

Blank lines are already handled by blockElements.

commit75762ee0dc30e10befd1072a7ad182d92e4f5680 authorAlexander Krotov <ilabdsf@gmail.com> dateSun 28 Jan 2018, 01:04 (9 years ago) parentde6ae29
1 file changed+2−3
src/Text/Pandoc/Readers/Muse.hs+2−3
src/Text/Pandoc/Readers/Muse.hs+2−3
@@ -332,9 +332,8 @@ para = do
332332 let f = if st /= ListItemState && indent >= 2 && indent < 6 then B.blockQuote else id
333333 fmap (f . B.para) . trimInlinesF . mconcat <$> many1Till inline endOfParaElement
334334 where
335− endOfParaElement = lookAhead $ endOfInput <|> newBlockElement
336− endOfInput = try $ skipMany blankline >> skipSpaces >> eof
337− newBlockElement = try $ blankline >> void blockElements
335+ endOfParaElement = lookAhead $ try (eof <|> newBlockElement)
336+ newBlockElement = blankline >> void blockElements
338337
339338noteMarker :: PandocMonad m => MuseParser m String
340339noteMarker = try $ do