Skip to content

Incorrect 'mailto' link scheme #67

@jsayol

Description

@jsayol

Bug description

When linking to an email address the URI has to be written as mailto://someone@example.com instead of mailto:someone@example.com. Only the second form is correct according to the standard.

Expected behaviour

The second form should work as expected and generate the link. Github's Markdown does it correctly.

Steps to reproduce

Write a comment on reddit containing the code

[test](mailto:someone@example.com)

which should be equivalent to the current

[test](mailto://someone@example.com)

Proposed fix

Remove the slashes in src/autolink.c to accept 'mailto:'. This will also keep backwards compatibility with the existing 'mailto://' links.

The code over at reddit is already correct.

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