diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index 9b48c70aa..bc3bb921e 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -492,9 +492,10 @@ amuseNoteBlockUntil :: PandocMonad m -> MuseParser m (F Blocks, a) amuseNoteBlockUntil end = try $ do guardEnabled Ext_amuse - ref <- noteMarker <* spaceChar + ref <- noteMarker pos <- getPosition - (content, e) <- allowPara $ listItemContentsUntil (sourceColumn pos - 1) (fail "x") end + void spaceChar <|> lookAhead eol + (content, e) <- allowPara $ listItemContentsUntil (sourceColumn pos) (fail "x") end addNote ref pos content return (mempty, e) |