Skip to content

Should be an option not to remove scheme on autolinked/self-linked URLs #16

@adam-earthscope

Description

@adam-earthscope

When auto_link=True, or when self-linking a URL like "$":http://www.example.com/ the scheme (http://) is removed from the displayed link.

I realize this follows the PHP version, but looking at the history behind that change (textile/php-textile#48 (comment)) it looks like something tossed in without much discussion. I (and several people I showed this to) feel like this was a bad decision, as it makes it less clear that the given text is actually a URL. It seems like there should at least be an option to turn this off.

Ironically, the one case where I think it should be removed is for mailto: links, but it's not. (This does deviate from the PHP version, which removes them.)

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