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

So the FAQ shows "three ways to write links." All involve a [name] part and a (link) part (or a [link] part).

I just noticed it's also possible to omit the link part in case the name part matches the URL identifier:

So the [FAQ] shows...

[faq]: http://stackoverflow.com/editing-help

, which produces the link you can see in the beginning of this question.

Is that a pleasant bug in Markdown?
Or is that a nice feature not listed in the editing FAQ for some reason?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Yes, this is supported by MarkdownSharp. I guess you'd say it's a bit of an easter egg..

share|improve this answer

A rather similar way is explicitly allowed in the original Markdown spec, with the only exception that it requires an additional set of empty brackets:

The implicit link name shortcut allows you to omit the name of the link, in which case the link text itself is used as the name. Just use an empty set of square brackets — e.g., to link the word “Google” to the google.com web site, you could simply write:

   [Google][]

And then define the link:

   [Google]: http://google.com/

So I'd assume it's very much intentional.

share|improve this answer
    
Aha, and yet again (even without the extra brackets) the preview matches the actual output. Nice! –  Arjan Mar 21 '11 at 16:24

You must log in to answer this question.

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