Skip to content

Commit

Permalink
Markdown reader: Allow internal + in citation identifiers.
Browse files Browse the repository at this point in the history
Closes jgm#856.
  • Loading branch information
jgm committed May 13, 2013
1 parent d097734 commit b89a443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/Markdown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b89a443

Please sign in to comment.