aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-04-26 12:29:45 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-04-26 12:38:17 +0300
commit4d89a1db7f1ad9d64db7c9e2c294351821ff3993 (patch)
tree8e31334d362359c0e9f6428fb386b482803e192d /src/Text/Pandoc
parent73463b823929ce4930ed60e576d13a148ffb573c (diff)
downloadpandoc-4d89a1db7f1ad9d64db7c9e2c294351821ff3993.tar.gz
Muse reader: allow nested footnotes
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs
index f21a169fd..fe6b3698c 100644
--- a/src/Text/Pandoc/Readers/Muse.hs
+++ b/src/Text/Pandoc/Readers/Muse.hs
@@ -821,7 +821,7 @@ footnote = try $ do
Nothing -> return $ B.str $ "[" ++ ref ++ "]"
Just (_pos, contents) -> do
st <- askF
- let contents' = runF contents st { museNotes = M.empty }
+ let contents' = runF contents st { museNotes = M.delete ref (museNotes st) }
return $ B.note contents'
whitespace :: PandocMonad m => MuseParser m (F Inlines)