Skip to content

AutoLink extension links invalid protocol-only (no host) URIs #99

@peckjon

Description

@peckjon

It is common to type only "http://" (not followed by any hostname etc) in the process of creating technical documentation.

The AutoLink extension incorrectly attempts to link these, resulting in ugly documentation.

URIs are invalid without a host portion:

URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

hier-part = "//" authority path-abempty
                 / path-absolute
                 / path-rootless
                 / path-empty

authority = [ userinfo "@" ] host [ ":" port ]

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