Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 153 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I just came across this answer, which included a note that the URL they tried to use wasn't being recognized by the markdown engine.

I tried swapping the hyphens for %2D and suddenly the URL was recognized. When I clicked the link to confirm it worked properly, I noticed Wikipedia was performing a redirect from http://en.wikipedia.org/wiki/Model-view-controller gets redirected to http://en.wikipedia.org/wiki/Model–view–controller.

The difference is subtle, but the "proper" Wikipedia URL uses an ndash instead of a hyphen. As you can see from the links above, this is a breaking character for Markdown URLs.

I know that in this case switching with hyphens works, but should Markdown be updated to allow this character (and probably the mdash as well, for good measure - any others?) in case there are situations where it doesn't?

share|improve this question
up vote 3 down vote accepted

Solution:

  1. press ctrl+l (or click the toolbar hyperlink button)

  2. paste URL

  3. press enter

result:

[Model-View-Controller on Wikipedia][1]

  [1]: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
share|improve this answer
    
To be fair, this auto-encoding wasn't available in November of 2009 when the original post was made. – balpha Mar 20 '11 at 7:13
    
Firefox has been my main browser for six years, yet I've never noticed this. Seems to only work when you paste the whole URL, not when you just replace a portion like I was doing last night. Thanks Lord President Atwood. – AgentConundrum Mar 20 '11 at 17:15
    
@jesse I prefer Galactic President Superstar McAwesomeville youtube.com/watch?v=Y5RQNBFKK30 – Jeff Atwood Mar 20 '11 at 21:28
    
Duly noted, though I took Lord President from Doctor Who, which is clearly superior to (the non-NPH parts of) HIMYM. – AgentConundrum Mar 21 '11 at 1:41

You must log in to answer this question.

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