8

e.g.:

Source

[This link will merge with the text and the 2nd link][1]

non-link text

[this link causes the previous link to merge with it.][2] 

[1]: http://example.com/ 
[2]: http://example.com/áéíóúö/

Demonstration

This link will merge with the text and the 2nd link

non-link text

this link causes the previous link to merge with it.

Description

Note that there are client side and server side bugs with this.

Server side: when rendered the above is one link, pointing to http://example.com/
Client side: when previewed only the first link is linked.

I'm primarily concerned about the foreign alphabet characters since they are the most frequently used, not other glyphs that may be used in URLs.

Possible workarounds

As I've said elsewhere:

Sometimes URLs can fail to link correctly because they contain disallowed characters. In these cases encode the characters using the % notation. Previously characters such as () [] ' and * were not allowed but the server-side Markdown renderer has been modified to accept them now. Currently the only (known) characters that aren't accepted are ones with accents, graves, diaeresis etc. For example: é or ö, although with wikipedia links you can just use the unadorned character.

7
  • 5
    crazy moon language! Commented Jul 13, 2009 at 15:10
  • 2
    This is Jeff's sneaky way of trying to force everyone into an English-dominated world.
    – TheTXI
    Commented Jul 13, 2009 at 15:10
  • 1
    I'm sure someone will be along shortly with a Greasemonkey solution. Commented Jul 13, 2009 at 15:11
  • 2
    HURRY UP JONATHAN!
    – TheTXI
    Commented Jul 13, 2009 at 15:12
  • 2
    See Jeff, you used RegEx, and now you've got two problems.
    – Eric
    Commented Jul 13, 2009 at 15:19
  • 6
    well, three, counting you Commented Jul 13, 2009 at 15:25
  • Touche, good sir. Could you post how you solve this, though? I've yet to do RegEx on anything but the standard US alphabet, so I'm intrigued at the ranges you need to use to include the rest of the world as well as thwart potentially dangerous URLs/code.
    – Eric
    Commented Jul 13, 2009 at 15:31

2 Answers 2

3

You can place such links using the link insertion toolbar button, aka Ctrl+L.

http://example.com/áéíóúö/

inserted as stated above:

link text goes here

1

If you use numeric or named html entity references it seems to work code as above but with some of these in [2], don't know if this is an easier workaround or not.

  [2]: http://example.com/ãâã/

This link will merge with the text and the 2nd link

non-link text

this link causes the previous link to merge with it.

You must log in to answer this question.

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