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.

3
  • Good edit Alex, thanks :) Jan 5 '10 at 14:20
  • No problem, Moayad.
    – alex
    Jan 5 '10 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
    Mar 16 '16 at 17:50
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
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
    Jan 5 '10 at 14:25
0

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

2
  • 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 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 .