Example: If I want to link to email@example.com it should display this as a URL and not as a username.
Not sure I follow. In your example you are using
But we don’t support mailto links by design.
How about this then:
turns into @codinghorror. This is meant to be a link to twitter, instead shows as a username. Hyperlinks should be ignored when identifying usernames.
That is a rather odd bug. A bit of an edge case, but a bug nonetheless.
You can do(and should do) mailto links(can do regular links as well) with
They are generally better protected(or atleast should be) against bots harvesting emails*.
You sure about that?
The downside of this is that it won’t let you pre-fill the subject line or body, like raw mailto: links do. EDIT: Discourse will not allow you to put a raw mailto: link in your post without editing the code.
Yup, I noticed that it doesn’t here. Hence my ( )'s in the above sentence.
I don’t know which markdown renderer is used by Discourse but it should render them as daringfireball.net does IMO.
And true about the raw mailto links, but I rarely see those nowdays. =)
I see so you mean Twitter specifically, you want to write a name that conflicts with a local name and have it be a link. I am not sure that’s a bug, I would expect the local name to have precedence over the twitter name.
I’d say you should do something like
I disagree. When I create a hyperlink, then whatever I pick as the display text should be displayed as the (clickable) link.
There shouldn’t be other rules that would interfere with this and turn part of the link into something else that’s also clickable but points to somewhere else.
is a great workaround for the bug I think that this is a bug.
Related to the OP, I can’t make a link with my email address, and have it display the email address, because it includes my username
As I said a few posts above, mailto links are not supported.
Can't create mailto links in posts
I’ve got a fix to prevent linking to
@mentions ready. Should be deployed soon
Looks like its fixed, closing