You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContentType.getContentType returns EXTERNAL for urls that start with 'mailto:'. When LinkUtil.formatURL checks if a url doesn't contain '://', it also makes sure the url doesnt start with 'mailto'.
There still exists an issue with markdown links for mailto as described in this issue -> reddit/snudown#67
Bug description
When linking to an email address the URI has to be written as
mailto://[email protected]
instead ofmailto:[email protected]
. 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
which should be equivalent to the current
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.
The text was updated successfully, but these errors were encountered: