aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-05-13 10:33:31 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-05-13 10:33:31 -0700
commitb89a44303456da6db8aedfeecc8577fcfcb78274 (patch)
tree5f90999b5bc856e715a28e9793fa42bd3462ac66
parentd097734189935e60c4b2394e768d8b25eaf46f6f (diff)
downloadpandoc-b89a44303456da6db8aedfeecc8577fcfcb78274.tar.gz
Markdown reader: Allow internal `+` in citation identifiers.
Closes #856.
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index dcf7f1b1a..69011bc56 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1705,7 +1705,7 @@ citeKey = try $ do
char '@'
first <- letter
let internal p = try $ p >>~ lookAhead (letter <|> digit)
- rest <- many $ letter <|> digit <|> internal (oneOf ":.#$%&-_?<>~/")
+ rest <- many $ letter <|> digit <|> internal (oneOf ":.#$%&-_+?<>~/")
let key = first:rest
citations' <- map CSL.refId <$> getOption readerReferences
guard $ key `elem` citations'