9

I know how to insert a [link](link) in my questions, answers or comments, and I know how to use tex.stackexchange link button as explained in How do I create a link to an answer?.

But I need to use two copy+paste operations, one for [this is my question] and a second for (link to this is my question).

Is it possible to do it with just one operation? How?

2 Answers 2

9

In questions and answers you can simply insert the plain link to a question or answer and it will be converted to a link to that question labeled with the title of it. This works for both full and compact links but it does not work in comments.

For example if you insert

https://tex.meta.stackexchange.com/questions/2456/automatic-questions-title-insertion-with-link

into a question or answer it will be converted to

Automatic question's title insertion with link

The same goes for compact links (but not for answers). For example if you insert

https://tex.meta.stackexchange.com/q/2456

into a question or answer it will be converted to

Automatic question's title insertion with link

2
7

As already stated by N.N. it is sufficient to simply post a link to the question or answer into a question or answer post. It will be formatted automatically. However, in the recent past this didn't worked for my 100% the time. You might try to add < > around the link. Also, this does not work for comments.

Therefore I can recommend the following: There is a stackapp Greasemonkey script which will give you a copy button similar to the link button below posts: Copy Question Link Markdown - Making it easier to copy links to questions! It provides you with the [<title>](<url>) format required. You can use it in comments and also in question or answer posts.

I found a few issues with the script and rewrote parts of it. The revised version can be found as answer to the above stackapps post.

Screeenshot

1
  • Thank you. I'll try it!
    – Ignasi
    Commented May 3, 2012 at 10:11

You must log in to answer this question.

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