mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-28 10:25:41 +00:00
Markdown reader: More accurate check that a normalCite...
...is not a link, bracketed span, or reference. See #9080.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user