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
go/doc: ToHTML fails on wikipedia ( ) urls #5043
Labels
Milestone
Comments
How awful. Let's leave this until after Go 1.1. We don't want to grab the closing ) in (http://golang.org) so I guess the link finder will have to count parentheses. Ugh. The workaround is to use %28 and %29 instead. Labels changed: added priority-later, removed priority-triage. Status changed to Accepted. |
Pending CL: https://golang.org/cl/85610043 Labels changed: added release-go1.3, removed release-none. Owner changed to @griesemer. Status changed to Started. |
This issue was closed by revision 9610b61. Status changed to Fixed. |
gopherbot
pushed a commit
that referenced
this issue
Dec 14, 2018
To fix #5043, we added logic to allow balanced pairs of parenthesis so that we could match URLs like: http://example.com/some_resource(foo) Howewer, such logic breaks when parsing something like the following: art by [https://example.com/person][Person Name]]. such that the following is considered the link: https://example.com/person][Person Since the logic added in #5043 was just a heuristic, we adjust the heuristic that in addition to requiring balanced pairs, the first parenthesis must be an opening one. For further robustness, we apply this heuristic to parenthesis, braces, and brackets. Fixes #22285 Change-Id: I23b728a644e35ce3995b05a79129cad2c1e3b1ce Reviewed-on: https://go-review.googlesource.com/c/94876 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: