git.iko.soy/typeable/pandoc
on master help sign in
Forbid ()s in citation item keys.

Resolves Issue #304: problems with (@item1; @item2) because the final paren was being parsed as part of the item key.

commit6e59053d3287b6ff5f71b7ff789c0d7215388359 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 22 May 2011, 20:24 (15 years ago) parent9ff5893
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -1290,7 +1290,7 @@ citeKey = try $ do
12901290 suppress_author <- option False (char '-' >> return True)
12911291 char '@'
12921292 first <- letter
1293− rest <- many $ (noneOf ",;]@ \t\n")
1293+ rest <- many $ (noneOf ",;!?[]()@ \t\n")
12941294 let key = first:rest
12951295 st <- getState
12961296 guard $ key `elem` stateCitations st