diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-14 12:20:33 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-14 12:20:33 -0800 |
commit | 2b08e32a9090442b530822f151c94fbd7d1cbbd1 (patch) | |
tree | ebd4b4bf68414884f69ceacce3cda0d3a34c0d3b /src/Text/Pandoc | |
parent | 4ffa70970dc7219aa71c137c728280b7460ed604 (diff) | |
download | pandoc-2b08e32a9090442b530822f151c94fbd7d1cbbd1.tar.gz |
Fixe autolinks with following punctuation.
Closes #1811.
The price of this is that autolinked bare URIs can no longer
contain `>` characters, but this is not a big issue.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Parsing.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Parsing.hs b/src/Text/Pandoc/Parsing.hs index e0f5f65bb..8dfc6dd57 100644 --- a/src/Text/Pandoc/Parsing.hs +++ b/src/Text/Pandoc/Parsing.hs @@ -452,7 +452,7 @@ uri = try $ do let percentEscaped = try $ char '%' >> skipMany1 (satisfy isHexDigit) let entity = () <$ characterReference let punct = skipMany1 (char ',') - <|> () <$ (satisfy (\c -> not (isSpace c) && c /= '<')) + <|> () <$ (satisfy (\c -> not (isSpace c) && c /= '<' && c /= '>')) let uriChunk = skipMany1 wordChar <|> percentEscaped <|> entity |