Fix RST reference names with special characters

This commit is contained in:
Lars-Dominik Braun
2015-06-29 18:34:45 +02:00
parent 27754e170b
commit 3b2c50ed93
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -779,7 +779,7 @@ simpleReferenceName' :: Parser [Char] st String
simpleReferenceName' = do
x <- alphaNum
xs <- many $ alphaNum
<|> (try $ oneOf "-_:+." >> lookAhead alphaNum)
<|> (try $ oneOf "-_:+." <* lookAhead alphaNum)
return (x:xs)
simpleReferenceName :: Parser [Char] st Inlines