diff options
| author | John MacFarlane <[email protected]> | 2025-08-26 11:24:02 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-08-26 11:24:02 +0200 |
| commit | 7e4ef3c54a51c5b1708b6619c3c6e4041a3879e7 (patch) | |
| tree | 125f0c7217b99211b97ea1a6f6ef84bd2dbbddfe | |
| parent | 5e92187c88b622c3f4186cc4ebcc4372c56445f5 (diff) | |
Markdown reader: don't confuse a span after...
an author-in-text citation with a locator. E.g. `@foo [test]{.bar}`.
See https://github.com/jgm/pandoc/issues/9080#issuecomment-3221689892.
| -rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index d81c4e3c1..b9451f2e1 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -2227,7 +2227,7 @@ bareloc c = try $ do rest <- option (return []) $ try $ char ';' >> spnl >> citeList spnl char ']' - notFollowedBy $ oneOf "[(" + notFollowedBy $ oneOf "[({" return $ do suff' <- suff rest' <- rest |
