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

When I try writing more than one URL without anything but a space between them, although they contain http://, the second one doesn't get hyperlinked.

Here are a few examples:

  1. http://meta.stackoverflow.com/ http://meta.stackoverflow.com/ http://meta.stackoverflow.com/ - the second URL is not automatically hyperlinked, but you can click the first and the third ones, so the second one worked as a divider between the first and the third links.

  2. http://meta.stackoverflow.com/, http://meta.stackoverflow.com/ http://meta.stackoverflow.com/

  3. http://meta.stackoverflow.com/, http://meta.stackoverflow.com/, http://meta.stackoverflow.com/ -- every link works, because there's something (in this case a comma) between them.

share|improve this question
    
Good edit Alex, thanks :) –  Moayad Mardini Jan 5 '10 at 14:20
    
No problem, Moayad. –  alex Jan 5 '10 at 14:24

5 Answers 5

up vote 8 down vote accepted

This is because the auto-hyperlink code uses consuming regexes to detect characters on either side.

When you express links like:

http://www.example.com http://example.com

The space after the first link is consumed by the match, and not available for the next link, so it fails to match.

Anyway, since it should be EXCEEDINGLY unusual to have multiple bare/naked/unformatted URLs on the same line, I don't think this is worth fixing.

Plus if you really want this just use the proper markup..

<http://www.example.com> <http://example.com>

Shown below:

http://www.example.com http://example.com

share|improve this answer

Solution: Stop spamming undescribed links in your questions and answers.

If you have multiple links, give other people the courtesy of giving them descriptive text so that people have some idea of what they might be instead of just listing off URLs one after the other.

share|improve this answer

Works with 2 spaces.

http://meta.stackoverflow.com/ http://meta.stackoverflow.com/ http://meta.stackoverflow.com/

share|improve this answer
    
Good suggestion. +1 –  Moayad Mardini Jan 5 '10 at 14:10

Another solution is to fix it yourself, as the markdown parser has been open sourced ;-)

share|improve this answer
6  
You fix it for me. It's easier :) –  alex Jan 5 '10 at 14:25

Well, you can bunch all the links into 1 using LinkBunch

share|improve this answer
    
This service has stopped, I'm afraid. –  Arjan Aug 14 '11 at 19:58
    
oooh. Let me find out more if this is a temporary glitch @Arjan –  Sathya Aug 14 '11 at 20:22

You must log in to answer this question.

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