diff options
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index b64d877b3..7b6da1174 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -332,9 +332,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 <|> newBlockElement - endOfInput = try $ skipMany blankline >> skipSpaces >> eof - newBlockElement = try $ blankline >> void blockElements + endOfParaElement = lookAhead $ try (eof <|> newBlockElement) + newBlockElement = blankline >> void blockElements noteMarker :: PandocMonad m => MuseParser m String noteMarker = try $ do |