-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autolink_bare_uris extension incorrectly parses Notes:
as URI
#3570
Comments
The issue is that
Not sure whether we can avoid false positives like this one easily... |
Thanks. I guess autolink should follow URL defs - "Notes:" is not a URL string by any existing RFC. |
For some reason, |
Notes:
as URI
Probably because of lotus notes. A proper URI should have double slashes following the colon. Even then just having a type with no actual resource locatior (notes:) makes no sense as a link. |
We're using a function from Network.URI to recognize URLs.
We may need to add some additional rules to rule out obvious
junk like this!
|
See the link in the code comments, and
https://www.iana.org/assignments/uri-schemes/prov/notes
|
mailto: URI don't have double slashes, and I'm sure there
are other exceptions too.
+++ Alex Ivkin [Apr 14 17 07:03 ]:
… Probably because of lotus notes. Still, a proper URI should have double
slashes following the colon.
|
This avoids parsing bare URIs that start with a scheme + colon + `*`, `_`, or `]`. Closes jgm#3570.
-f markdown+autolink_bare_uris
on
Produces
Expected result, same as running -f markdown
pandoc 2.0 Compiled with pandoc-types 1.17.0.5, texmath 0.9, skylighting 0.1.1.5
The text was updated successfully, but these errors were encountered: