mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
Fixed bug in uri parser.
The bug prevented an autolink at the end of a string (e.g. at the end of a line block line) from counting as a link. Closes #711.
This commit is contained in:
@@ -415,7 +415,7 @@ uri = try $ do
|
||||
let uriChunk = skipMany1 wordChar
|
||||
<|> percentEscaped
|
||||
<|> entity
|
||||
<|> (try $ punct >> notFollowedBy (satisfy $ not . isWordChar))
|
||||
<|> (try $ punct >> lookAhead (satisfy isWordChar) >> return ())
|
||||
str <- snd `fmap` withRaw (skipMany1 ( () <$
|
||||
(enclosed (char '(') (char ')') uriChunk
|
||||
<|> enclosed (char '{') (char '}') uriChunk
|
||||
|
||||
Reference in New Issue
Block a user