Request to improve the URL handling functionality
Hello,
I'm mostly active in the Java forums these days, and often I find the desire to link to a method in the Java API, but the markdown syntax doesn't seem to handle the URL format quite well.
Here's an example of a URL that I was recently trying to link to:
http://docs.oracle.com/javase/6/docs/api/java/util/Arrays.html#asList(T...)
I guess you can easily notice that it breaks a valid URL.
Related Article: Improve DaniWeb for Future Generation
is a solved DaniWeb Community Feedback discussion thread by kingsonprisonic that has 11 replies, was last updated 1 year ago and has been tagged with the keywords: daniweb, improve.
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
Dani
The Queen of DaniWeb
21,367 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 368
Skill Endorsements: 122
Dani
The Queen of DaniWeb
21,367 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 368
Skill Endorsements: 122
Thank you, problem solved :)
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
Dani
The Queen of DaniWeb
21,367 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 368
Skill Endorsements: 122
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.
Dani
The Queen of DaniWeb
21,367 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 368
Skill Endorsements: 122
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
~s.o.s~
Failure as a human
12,220 posts since Jun 2006
Reputation Points: 3,307
Solved Threads: 783
Skill Endorsements: 55
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).
Dani
The Queen of DaniWeb
21,367 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 368
Skill Endorsements: 122