Muse reader: make parseBlocks similar to parseBlocksTill
This commit is contained in:
parent
c3fbc492c8
commit
bf16a9c78a
1 changed files with 4 additions and 4 deletions
|
@ -243,10 +243,10 @@ directive = do
|
|||
parseBlocks :: PandocMonad m
|
||||
=> MuseParser m (F Blocks)
|
||||
parseBlocks =
|
||||
try parseEnd <|>
|
||||
try blockStart <|>
|
||||
try listStart <|>
|
||||
try paraStart
|
||||
try (parseEnd <|>
|
||||
blockStart <|>
|
||||
listStart <|>
|
||||
paraStart)
|
||||
where
|
||||
parseEnd = mempty <$ eof
|
||||
blockStart = do first <- header <|> blockElements <|> emacsNoteBlock
|
||||
|
|
Loading…
Add table
Reference in a new issue