Muse reader: move para definition into blockElements

This commit is contained in:
Alexander Krotov 2018-02-05 16:15:52 +03:00
parent 02cb6eb477
commit cadcf62ff3

View file

@ -267,6 +267,7 @@ parseBlock = do
res <- blockElements <|> para
trace (take 60 $ show $ B.toList $ runF res def)
return res
where para = fst <$> paraUntil (try (eof <|> void (lookAhead blockElements)))
blockElements :: PandocMonad m => MuseParser m (F Blocks)
blockElements = choice [ mempty <$ blankline
@ -414,10 +415,6 @@ paraUntil end = do
let p = fmap (f . B.para) $ trimInlinesF $ mconcat l
return (p, e)
para :: PandocMonad m => MuseParser m (F Blocks)
para =
fst <$> paraUntil (try (eof <|> void (lookAhead blockElements)))
noteMarker :: PandocMonad m => MuseParser m String
noteMarker = try $ do
char '['