2

Auto link urls please
 

I noticed that this has been mentioned on Ask Sage, and I have found that users of my site do not understand Mardkown. Mostly, this does not matter, but they do need to link to things, and the result is lots of plain text URLs (lots is relative given that the site is new and low traffic). Auto linking would be really useful.

There are some existing solutions (I found this and this so you might not have to do it from scratch.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
graeme's avatar
319
graeme
asked 14 years ago

Comments

Thanks. I'll definitely look into it.
Evgeny's avatar Evgeny (14 years ago)
A big +1 on this. Note that, strangely, urls like http://askbot.org are autolinked in comments
niles's avatar niles (14 years ago)
Hi Niles, that's because comments are not parsed with markdown, so it's much easier to deal with urls there. If there is "urlizing" in the questions and answers, it must be compatible with markdown.
Evgeny's avatar Evgeny (14 years ago)
The only thing I (or anyone on my site) ever uses Markdown for is to insert links. I would happily trade Markdown for auto linking - the only drawback is that the link text would always be a URL. Of course having both would be better!
graeme's avatar graeme (14 years ago)
I hear you - will be done. Just don't want to switch my "brain context" from badges right now, should be done with them by Sunday the latest.
Evgeny's avatar Evgeny (14 years ago)
see more comments

1 Answer

1

Done hopefully, please drop a note if there are any issues. Below are some tests.

Also for the sage people I've added an autolinker to their bug tracker. A phrase "ticket #" will be interpreted as a link to the tracker.

Tests:

inline-style markdown link

footnote-style markdown link

plain text link to an image - http://img109.imageshack.us/img109/7189/sage0.png

image, hotlinked via markdown: image description

uploaded markdown image:

image description

file as uploaded attachment: folder.png

plain text url with parameters: http://ask.sagemath.org/question/10/what-is-broken-on-this-site?comment=749#comment-749

A url entered as html: example.com

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

awesome!! thanks :)
niles's avatar niles (14 years ago)
Works fine. Does not work in the preview, but that does not matter.
graeme's avatar graeme (14 years ago)
see more comments