5
$\begingroup$

I usually use in-text citations putting the linked text in square brackets followed by the link in normal brackets. This prevents the link showing. However for a recent post I thought I would use numbering and group the links at the end. (All links related to other SE posts.) According to the edit Help the format for this is text in square brackets followed by number in square brackets. When I did this the first link immediately referred to the source of the first image I had on the page, which uses a similar system.

Am I doing something wrong? If so what? If not, is there a work-around?

Example

The instructions for linking are shown in the screenshot below:

Screenshot of link help

which is marked up as:

 [1]: https://i.stack.imgur.com/yNx2e.png

Now if I add a link to the page this is on marked up as:

[a link to the page this is on][1]

typing at the bottom:

[1]: https://biology.meta.stackexchange.com/editing-help

kills the image link. I also do not see the reference number.

Now I am trying to link using Roman numerals:

[using Roman numerals][i]

This works in that it gives a link that doesn't kill the image. But this is not what I had in mind. I see I misunderstood. Will answer my own question.

$\endgroup$
0
6
$\begingroup$

Links and images share the same Markdown reference system. That means your references must be unique; if you use [1] for a link, you can't use [1] for another image.

Note that the references don't need to be numbers: if you format your link as [This is a link to Wikipedia][Wikipedia] and include [Wikipedia]: https://en.wikipedia.org/ at the end of the post, it will work as well:

This is a link to Wikipedia

$\endgroup$
1
  • $\begingroup$ Thanks. That gives me a work-around. As it happens what I wanted was something different, as my own answer illustrates. $\endgroup$
    – David
    Mar 23 at 15:26
2
$\begingroup$

So this is what I wanted to do and how I realize I need to do it.

Example

The Stack Exchange Editing Help1 shows you how to link text to external URLs. Text link help

(Biology Stack Exchange also has its own Help Center2.)

RERERENCES

1 Stack Exchange Editing Help

2 Stack Exchange Biology Help Center

Explanation

This method uses ‘dead’ reference numerals in the text and marks up the links to descriptive text in (for me) the normal way inline, but as endnotes. Rather than superscripts I could have used other brackets — (1) or {1} — but not square brackets — [can’t put 1 here] — as these clash with the image links.

Code:

<sup>1</sup> [Stack Exchange Editing Help](https://biology.meta.stackexchange.com/editing-help)
<sup>2</sup> [Stack Exchange Biology Help Center](https://biology.stackexchange.com/help)
$\endgroup$

You must log in to answer this question.

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