3
Contributors
9
Replies
25
Views
4 Years
Discussion Span
Last Post by Dani
Featured Replies
  • 1
    Dani 1,558   4 Years Ago

    Here's how you do that: `[Click here](http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...))` OR `[http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...)](http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...))` OR Click the 'Link' button in the editor toolbar or hit Ctrl+L to insert a link. All three ways should work. Read More

  • 1
    Dani 1,558   4 Years Ago

    The issue is that your link cannot have a space within it. Convert spaces to %20 as so: [Math.pow](http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double,%20double)) It is by design that URLs get URLified within code. It's a common occurrence that code includes a comment with a link to its author, etc. Because it doesn't make sense … Read More

0

I've reopened this question because of another issue that I'm facing.

In this post the URL doesn't get rendered correctly. I checked using a different browser with cleared cache.

I wrote the text "Math.pow", selected it, clicked the Link button, and pasted there the copied URL:
http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double, double).

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

Also it feels unpleasant that a URL gets URLified when marked as inline code.

I use Pale Moon 15.4.1-x64 and Chrome 24.0.1312.57 m.

Edited by mvmalderen

1

The issue is that your link cannot have a space within it.

Convert spaces to %20 as so:

Math.pow

It is by design that URLs get URLified within code. It's a common occurrence that code includes a comment with a link to its author, etc. Because it doesn't make sense to allow markup within code, since code should be literal, I chose to auto-linkify all links within code.

0

Convert spaces to %20 as so

That fixes it. Thank you :)

It is by design that URLs get URLified within code.

However this post first inline code box doesn't URLify the whole link. As you can see the '(T...)' part is not URLified. How is that done then?
Also that makes me wonder why a valid URL such as
'http://docs.oracle.com/javase/6/docs/api/java/lang/Math.html#pow(double,%20double)'
or
'http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...)'
doesn't get URLified as a whole automatically?

Edited by mvmalderen

0

The problem is with closing parentheses. Just escape the closing parentheses by leading it with backslash character and it should work out fine. For e.g.

http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...) [without backslash]

v/s

http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...) [with backslash before the )]

EDIT: It seems like there is a bug in the MD renderer. The preview shows the complete URLfied URL for the second case but after a submit it disappears.

Edited by ~s.o.s~

0

It's possible there is a bug in the live-preview. :( Will check into that ...

The auto-linkify feature will automatically quit at the sight of parentheses (Because it makes sense for people to naturally type naked links in parentheses like this: http://www.daniweb.com).

However, the explicity linkify feature will linkify everything (including parens) up until the first non-URL compliant character that it sees (such as a space).

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.