While asking a question on Stack Overflow, I had the need to reference the same URL twice within the content. I thought I'd try to conserve the amount of text by re-using this URL twice within the same question. As in, defining only one [1]
URL definition at the bottom of the question, and two hyperlink references to that same URL in two different hyperlinks.
However, upon saving this new question, and opening it back up in edit mode, it appears that it automagically produced two separate URL definitions [1]
and [2]
for the same duplicate URL.
What is the purpose/reason of this behavior?
PS: I'm doing the same in this question on MSO to see if the same result happens.
UPDATE (before even first submission of this post)
While writing this question, immediately after I posted the screenshot above, it changed to duplicate references:
I can't imagine any reason why it would explicitly convert 1 URL into 2 just because I'm using it twice.
[![][1]][1]
AFAIK every time you use the UI to add another image or link it re-numbers them. Seems unnecessary complexity to me - and the facility is buggy and re-numbers code too[]
enclosed indices. If you insert them manually (without that Ctrl+L dialog), you should get what you write (at least it was so when I was reporting a duplicate of the bug report @Martin linked, which I've deleted due to this cross site post).