diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index d88c5d995ac9..d2aa408a1d1c 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -2256,7 +2256,10 @@ normalCite = try $ do citations <- citeList spnl char ']' - notFollowedBy (oneOf "{([") -- not a link or a bracketed span + -- not a link or a bracketed span + notFollowedBy (try (void source) <|> + (guardEnabled Ext_bracketed_spans *> void attributes) <|> + void reference) return citations suffix :: PandocMonad m => MarkdownParser m (F Inlines)