Skip to content
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

GFM autolink extension (www. part): uppercase does not match on issues/PRs/comments #280

Open
wooorm opened this issue Sep 2, 2022 · 1 comment

Comments

@wooorm
Copy link

wooorm commented Sep 2, 2022

The prefix www, for autolink literals, only matches when lowercase, in comments.
This is different from how the protocol prefix (http://, https://) is handled, which is matched case-insensitive.
It is also different from how www is matched on Gists or in markdown files in a repo.

To illustrate:

## WWW autolink literals

www.commonmark.org

Www.commonmark.org

wWw.commonmark.org

wwW.commonmark.org

WWW.COMMONMARK.ORG

## Protocol autolink literals

http://commonmark.org

https://commonmark.org

Http://commonmark.org

Https://commonmark.org

hTtp://commonmark.org

hTtps://commonmark.org

HTTP://commonmark.org

HTTPS://commonmark.org

WWW autolink literals

www.commonmark.org

Www.commonmark.org

wWw.commonmark.org

wwW.commonmark.org

WWW.COMMONMARK.ORG

Protocol autolink literals

http://commonmark.org

https://commonmark.org

Http://commonmark.org

Https://commonmark.org

hTtp://commonmark.org

hTtps://commonmark.org

HTTP://commonmark.org

HTTPS://commonmark.org


Pasting the above markdown in a private gist shows that each link is linked there.

@UziTech
Copy link

UziTech commented Sep 2, 2022

If this is fixed in GFM the spec for autolinking should be updated as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants