mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-26 09:25:48 +00:00
Parsing.uri: don't treat * characters at end as part of URI.
This fixes #4561, a bug parsing emphasized bare links in RST.
This commit is contained in:
@@ -593,7 +593,7 @@ uri = try $ do
|
||||
-- http://en.wikipedia.org/wiki/State_of_emergency_(disambiguation)
|
||||
-- as a URL, while NOT picking up the closing paren in
|
||||
-- (http://wikipedia.org). So we include balanced parens in the URL.
|
||||
let isWordChar c = isAlphaNum c || c `elem` "#$%*+/@\\_-&="
|
||||
let isWordChar c = isAlphaNum c || c `elem` "#$%+/@\\_-&="
|
||||
let wordChar = satisfy isWordChar
|
||||
let percentEscaped = try $ char '%' >> skipMany1 (satisfy isHexDigit)
|
||||
let entity = () <$ characterReference
|
||||
|
||||
Reference in New Issue
Block a user