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.

Possible Duplicate:
Links to URLs containing parentheses

The following shows up fine in the Markdown preview but not in an actual answer:

[the API](http://java.sun.com/javase/6/docs/api/javax/xml/transform/TransformerFactory.html#newTransformer(javax.xml.transform.Source\))

[the API](http://java.sun.com/javase/6/docs/api/javax/xml/transform/TransformerFactory.html#newTransformer(javax.xml.transform.Source))

share|improve this question
    
You could post a screenshot for people that cannot edit this question to see the source code –  jmfsg Mar 15 '10 at 17:37
    
@Downvoter: Not at work, I can't. But, I don't see the need anyways; I already posted the source in plain text. Am I misunderstanding you horribly? –  Pops Mar 15 '10 at 17:41
1  
This is why I always encode the parentheses as %28 and %29. –  mmyers Mar 15 '10 at 17:43
    
See: meta.stackexchange.com/questions/13501/… (summary: the parser doesn't do nested parens, so either use a syntax that doesn't involve wrapping the URL itself in parentheses, or encode them (Firefox will actually do this for you when you copy the URL out of the address bar... java.sun.com/javase/6/docs/api/javax/xml/transform/…) –  Shog9 Mar 15 '10 at 17:45
    
@Shog9: Thanks, I am having terrible luck finding dupes myself lately. Voting to close. –  Pops Mar 15 '10 at 17:53
    
tagged [status-completed] because the confusing preview is fixed; the link as posted doesn't work by design (see Jeff's answer) –  balpha Jan 6 '11 at 11:26

3 Answers 3

up vote 1 down vote accepted

The preview now supports one level of opened/closed parenthesis. That's still less than the serverside Markdown supports, but covers the usual cases:

  • [foo](http://msdn.microsoft.com/en-us/library/ms535874(VS.85).aspx)
  • [bar](http://en.wikipedia.org/wiki/Unicorn_(disambiguation))

This will go live in the next build.

share|improve this answer

Reopening due to misinformation being presented.

Why are you randomly escaping the last paren and breaking the nesting? This works fine.

[the API](http://java.sun.com/javase/6/docs/api/javax/xml/transform/TransformerFactory.html#newTransformer(javax.xml.transform.Source))

the API

You might be freaked out because the PREVIEW doesn't get it right, but the server side does.

share|improve this answer
1  
Ah. After I saw that the preview got it wrong, I never even tried to post it that way. Thanks. –  Pops Mar 16 '10 at 14:44

All MSDN URLs seem to use embedded parentheses which break the parser. For example, this markdown:

A [foo](http://msdn.microsoft.com/en-us/library/ms535874(VS.85).aspx) B

Yields this result:

A foo B

The Markdown link format should still be able to parse this by looking for \S+\) (find the last occurrence of the paren within non-whitespace), right?

share|improve this answer
2  
you can omit that parens part though, it is optional on MSDN. try it yourself.. –  Jeff Atwood Jan 6 '11 at 0:22
1  
Interesting; that will help me in the future with MSDN urls specifically. Thanks! The problem still remains for parens in the middle of the URL for any sites that might put them there. –  Phrogz Jan 6 '11 at 1:40

You must log in to answer this question.

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