Skip to main content
12 of 14
edited body
Martin Sleziak
  • 4.7k
  • 2
  • 60
  • 122

To make a link in a comment you can use the [text](url) syntax. (And, of course, you can use simply bare URL - but I assume you want something nicer. Having some description of a link is useful for the users reading the comment, too.) The same syntax is possible in posts. (Although in posts there are other possibilities how to use links. Moreover, when composing or editing a post, you can insert a link using the built-in editor.)

For example, the following syntax works both in a post and in comments:

Link to a question on meta: [Hyperlink in a comment?](https://meta.mathoverflow.net/q/5410) This looks probably slightly better than a bare URL: https://meta.mathoverflow.net/q/5410

In the first comment under this post you can see how this looks in a comment - it looks approximately like this:

Link to a question on meta: Hyperlink in a comment? This looks probably slightly better than a bare URL: https://meta.mathoverflow.net/q/5410

(As pointed out by LSpice, MO links are usually expanded in a post to full title - so putting just https://meta.mathoverflow.net/q/5410 in a posts renders like this: Hyperlink in a comment?. However, this is not true for external links - and in the comments the link to MO posts are not changed in this way either. Comments have some special links call magic links such as [mathoverflow.se], [so], etc - they are expanded to a link with the full title of the site.)


See also:

A basic information about formatting in comments is displayed after you click on "help" when you're in the window for posting a comment. (Similar screenshot can be found in this post.)

screenshot


The above concerns using (inline) links in comments. Since you have explicitly mentioned a "published article" I will add that using the citation helper (in the editor) and then copy-pasting the result in a comment will not work the same way as in a post.

For example, this works in a post, but not in a comment:

<cite authors="Dashiell, F. K. jun.">_Dashiell, F. K. jun._, [**Isomorphism problems for the Baire classes**](http://dx.doi.org/10.2140/pjm.1974.52.29), Pac. J. Math. 52, 29-43 (1974). [ZBL0291.46021](https://zbmath.org/?q=an:0291.46021).</cite>

However, simply by removing the parts with <cite...> and </cite> yields a result which IMO looks acceptable in a comment.

_Dashiell, F. K. jun._, [**Isomorphism problems for the Baire classes**](http://dx.doi.org/10.2140/pjm.1974.52.29), Pac. J. Math. 52, 29-43 (1974). [ZBL0291.46021](https://zbmath.org/?q=an:0291.46021).

(I have used the format exactly the same as generated by the citation helper - of course, depending on personal preferences, I can imagine that some users might change it slightly.)

Martin Sleziak
  • 4.7k
  • 2
  • 60
  • 122