Content-Length: 254916 | pFad | https://github.com/github/cmark-gfm/issues/279

88 GFM autolink extension (`www.` part): the word `www` matches · Issue #279 · github/cmark-gfm · GitHub
Skip to content

GFM autolink extension (www. part): the word www matches #279

Open
@wooorm

Description

@wooorm
a www. b

Yields:

a www. b


It seems that when www. is found, it is then parsed again as a domain, of which the dot makes it valid, and then it gets truncated to exclude the dot.
Instead, I think a domain (with a dot) should be parsed after www..

a www.example b (probably not this one either)
a www.example.com b (this should of course work)

a www.example b (probably not this one either)
a www.example.com b (this should of course work)


Aside, it seems like dots aren’t needed at all:

https://example.com

https://example

http://example.com

http://example.com

www.example.com

www.example

https://example.com

https://example

http://example.com

http://example.com

www.example.com

www.example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/github/cmark-gfm/issues/279

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy