Skip to content

Commit

Permalink
Allow :// in citation keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Nov 13, 2015
1 parent a119ad8 commit d8080db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Text/Pandoc/Parsing.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,8 @@ citeKey = try $ do
firstChar <- alphaNum <|> char '_' <|> char '*' -- @* for wildcard in nocite
let regchar = satisfy (\c -> isAlphaNum c || c == '_')
let internal p = try $ p <* lookAhead regchar
rest <- many $ regchar <|> internal (oneOf ":.#$%&-+?<>~/")
rest <- many $ regchar <|> internal (oneOf ":.#$%&-+?<>~/") <|>
(oneOf ":/" <* lookAhead (char '/'))
let key = firstChar:rest
return (suppress_author, key)

Expand Down

0 comments on commit d8080db

Please sign in to comment.