-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
relaxed_autolinks option causes markdown links with url in title to get parsed incorrectly. #459
Comments
Bisect shows this was introduced at bc754e6; i.e. upon my attempt at restoring There should be a failing unit test for this to prevent a regression; exactly how to restore the behaviour depends on exactly what the desired behaviour is. (i.e. when is an autolink inside brackets good for "relaxed autolinking", vs. not?) |
ah, thanks for bisecting that! |
I've gone back and forth on this, and I don't see a good way to solve this for the general case. It's easy enough to fix But the more general case,
rather than
It's problematic to have links embedded within links. The original problem we were trying to solve was being able to support matching bracketed text and auto links so that the ending bracket is not pulled in as part of the url. For example
Without
and with it we get
This is the same type of support for However since Here are possible options I see:
Unless there is a way to make |
Well, we do handle some autolink processing in |
Created #461 |
when using the `relaxed-autolinks` option. See #459
when using the `relaxed-autolinks` option. See #459
Yeah, |
when using the `relaxed-autolinks` option. See #459
#461 has been merged, so closing this issue. |
When using the
auotlinker
extension and therelaxed_autolinks
option, markdown links such as[https://github.com](https://github.com)
get parsed incorrectly, generatinginstead of
See https://gitlab-org.gitlab.io/ruby/gems/gitlab-glfm-markdown/?text=%5Bhttps%3A%2F%2Fgithub.com%2F%5D(https%3A%2F%2Fgithub.com%2F)
The text was updated successfully, but these errors were encountered: