0

Possible Duplicate:
Links to URLs containing parentheses

I'm having trouble posting links to the Java documentation. Specifically, I'd like to link "Math.pow" to http://download.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double, double). Even though doing something like

[Math.pow][1]
[1]:http://download.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double, double)

works in the previewer, it doesn't display right in the final post.

None of the standard Markdown approaches seem to work:

[Math.pow][1]

[1]:http://download.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double, double)

[Math.pow](http://download.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double, double))

Math.pow

http://download.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double, double)

2

1 Answer 1

1

The issue is entirely with the space appearing in the URL, if it's encoded with a "%20" instead of being left as a space the URL will work just fine:

Math.pow

Math.pow

Math.pow

http://download.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double,%20double)

(though note the last "bare" link doesn't encode the final parenthesis)

3
  • None of your anchor links work. The page opens, but it does not scroll down to the anchor. It's not a markdown problem either; if you type in your url's directly into the browser, they won't work. The only one that seems to work is the unencoded one.
    – user102937
    Commented Sep 27, 2010 at 14:54
  • @Robert: in both Chrome and FireFox all but the last link work for me. Commented Sep 27, 2010 at 18:08
  • OK. I guess it's a problem in IE8.
    – user102937
    Commented Sep 27, 2010 at 20:09

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