Skip to content

Single level domain names are not recognized by the autolink extension #190

@btzy

Description

@btzy

When autolink is enabled (options.extension.autolink = true;), text that look like URLs should be converted into links.

This works, as expected: http://example.com/path/to/my/page

However, this doesn't: http://example/path/to/my/page

The CommonMark spec doesn't seem to require that the domain name must have at least two levels. However, a single level domain name is a valid URL, and it's common in private networks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions