aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-10-22 03:03:11 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-10-22 03:05:17 +0300
commit875e33ecf698396418d722d77f74cf07835058d2 (patch)
tree09635e3709e6b789eecaf0a92fed579bfa7935e5 /src
parent95b9d940923c066630d0de822bf6f509e7f83db2 (diff)
downloadpandoc-875e33ecf698396418d722d77f74cf07835058d2.tar.gz
Muse reader: allow footnotes to start with empty line
A space character was required after footnote marker, now newline is allowed.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs5
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)