aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-04-17 19:10:37 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-04-17 19:10:37 -0700
commit28ca8566ab72e135d559e457e28d3f3f306a7b0e (patch)
treeced14587477a16e1fbe0865f4e6c40342572d46f /src/Text
parent44fcc5f96e3f412337a98a1791a79b059579f78e (diff)
parentdccd408a9c22e9120dcf50f1c107bff71778ee45 (diff)
downloadpandoc-28ca8566ab72e135d559e457e28d3f3f306a7b0e.tar.gz
Merge pull request #1954 from mcmtroffaes/feature/citekey-firstchar-alphanum
Allow digit as first character of a citation key.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Parsing.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Parsing.hs b/src/Text/Pandoc/Parsing.hs
index d30c74230..33120e55d 100644
--- a/src/Text/Pandoc/Parsing.hs
+++ b/src/Text/Pandoc/Parsing.hs
@@ -1191,7 +1191,7 @@ citeKey = try $ do
guard =<< notAfterString
suppress_author <- option False (char '-' *> return True)
char '@'
- firstChar <- letter <|> char '_'
+ firstChar <- alphaNum <|> char '_'
let regchar = satisfy (\c -> isAlphaNum c || c == '_')
let internal p = try $ p <* lookAhead regchar
rest <- many $ regchar <|> internal (oneOf ":.#$%&-+?<>~/")