What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

As most of you know, putting a link into a post automatically makes it a link (e.g. http://localhost/) We can force the linkification with angle brackets (<http://localhost/>) if the markdown somehow misses it. But (as far as I know) there's no way to force the address to not be made a link. Such a feature would be nice when we need example addresses, there's no reason to have a link to http://www.example.com/, for instance, or http://1.2.3.4/domain.com/, from the question where I thought of this.

I think an easy way to mark this up would be something like <!http://example.com>, making the address appear in plain text without the hyperlink.

This came to my attention in this question: can't open transfered website from old DS to new DS

share|improve this question
    
As for any nice feature that is not essential for SE sites to operate correctly, I'd say: first convince the author of the Markdown specification... –  Arjan Jan 20 '12 at 21:12
    
@arjan technically auto-linking isn't part of the markdown spec. Technically, per the spec, only links in angle brackets are supposed to auto-link, but this is.. not how the world expects things to work these days. –  Jeff Atwood Jan 20 '12 at 21:18
    
True, @Jeff (though I did not even realize that). Still then, defining !<...> would be a deviation from the original Markdown that other parsers won't understand? Bare URLs might simply not be auto-linked by other parsers, but such does not really break the rendering, nor the content. (Related: I like the syntax for spoiler text, which does not break other parsers either.) –  Arjan Jan 20 '12 at 21:28
    
I thought I was going crazy, because all of the examples here whereby it's not supposed to create a link are appearing as links. Then I remembered I have a Chrome extension that turns non-linked URLs into links. –  Al E. Jan 21 '12 at 2:35
    
We do not allow IP address based hosts, see more at: meta.stackexchange.com/q/131639 (this message will be automatically removed when the link is fixed) –  Community May 14 '12 at 5:33

2 Answers 2

If you put the link in code tags, it won't be linked automatically.

Like this:

http://stackoverflow.com

What I did was use the backtick ` marks around it, so it works inline, too. http://www.google.com like that.

This would make semantic sense, too; because if you are wanting to insert a URL but don't want it to operate as a link, it's almost always because it's in code, or a value for some code.

share|improve this answer
    
I know it doesn't link in code, but I feel that unnecessarily highlights the address. I just want it to look like normal text. –  Kevin Jan 20 '12 at 21:05
1  
I think the use for that would be minimal (though obviously, you disagree). I suppose you could always do something like insert the HTML code for a zero-width space or some such. –  Andrew Barber Jan 20 '12 at 21:06
3  
Can't you just drop the http:// then, @Kevin? –  Arjan Jan 20 '12 at 21:15
3  
@arjan that was also the answer when this came up recently in the context of "why can't the tooltip text for a URL itself be a hyperlink too", which I consider a rather.. insanely obscure.. request. –  Jeff Atwood Jan 20 '12 at 21:19

http<nolink>://www.google.com/

http://www.google.com/

Implementation changes might break this, but for now you can use any non-whitelisted HTML-like-code to prevent the auto-linker from kicking in, despite the code being stripped.

This doesn't work in chat or comments.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .