5

When I type a URL in angle brackets, such as <http://www.example.com&gt;, in a comment, the URL is not detected and linked. Supporting this would allow links to be used more naturally in the flow of text in a comment.

This notation is recommended for embedding URLs in running text by RFC 2396; quotes are also recommended (I do not know if quotes work or not).

1

3 Answers 3

2

I looked at this, but it'd be another regex pass on every single comment as it is displayed.

IMO the <http://example.com> syntax isn't useful enough to justify its presence in the comment subset -- just type the bare URL, or use the supported [link](http://example.com) syntax.

8

You can just put the bare URL and it will be linked. As an alternative to that, you can make a link say whatever you want (including the text of the URL) if you surround the text with [] followed by the URL in ().

[<http://www.example.com>](http://www.example.com)

See the working example below.

2
  • <http://www.example.com>
    – Bill the Lizard Mod
    Commented Jul 11, 2010 at 2:42
  • Thank you - this does work as a work-around. I had not thought of it (I did not realize that the subset of Markdown supported in comments includes titled hyperlinks). Commented Aug 16, 2010 at 2:43
0

Just add the raw url. SO will automatically make it a live link. See the comment for an example.

3
  • example.com
    – jjnguy
    Commented Jul 11, 2010 at 5:49
  • The above comment was created from the source markdown: http://www.example.com
    – jjnguy
    Commented Jul 11, 2010 at 5:50
  • 1
    Yes, adding raw links works. However, it can be quite useful to use a delimiter, particularly if the URL is followed by text which is a valid URL character (such as a comma). Commented Aug 16, 2010 at 2:42

You must log in to answer this question.

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