diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-15 17:40:36 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-15 17:53:53 +0300 |
commit | 01f5ed14e67d0f4f3bf23b9506fe91b226cfe769 (patch) | |
tree | baabe3b3f1451d096a601c7cc811db840f48b862 /src/Text/Pandoc | |
parent | 17767bd29d54883364d4d9bdee417973ac0a10ac (diff) | |
download | pandoc-01f5ed14e67d0f4f3bf23b9506fe91b226cfe769.tar.gz |
Muse reader: don't allow footnote references inside links
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Muse.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs index 0dba0c4cb..c417588b8 100644 --- a/src/Text/Pandoc/Readers/Muse.hs +++ b/src/Text/Pandoc/Readers/Muse.hs @@ -822,6 +822,8 @@ anchor = try $ do -- | Parse a footnote reference. footnote :: PandocMonad m => MuseParser m (F Inlines) footnote = try $ do + inLink <- museInLink <$> getState + guard $ not inLink ref <- noteMarker return $ do notes <- asksF museNotes |