10

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. https://meta.stackoverflow.com/ https://meta.stackoverflow.com/ https://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. https://meta.stackoverflow.com/, https://meta.stackoverflow.com/ https://meta.stackoverflow.com/

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

2
  • No problem, Moayad.
    – alex
    Commented Jan 5, 2010 at 14:24
  • It seems this was fixed. (So, editing this very question would fix the links, but I don't want to change history. Well, just in case: a screenshot made just now, last edited early 2010.)
    – Arjan
    Commented Mar 16, 2016 at 17:50

5 Answers 5

8

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

0
16

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.

0
10

Works with 2 spaces.

https://meta.stackoverflow.com/ https://meta.stackoverflow.com/ https://meta.stackoverflow.com/

1
  • Good suggestion. +1 Commented Jan 5, 2010 at 14:10
7

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

1
  • 6
    You fix it for me. It's easier :)
    – alex
    Commented Jan 5, 2010 at 14:25
0

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

2
  • This service has stopped, I'm afraid.
    – Arjan
    Commented Aug 14, 2011 at 19:58
  • oooh. Let me find out more if this is a temporary glitch @Arjan Commented Aug 14, 2011 at 20:22

You must log in to answer this question.

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