Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference a displayed image in README.md

I have an image in markdown:

![Tabs](https://raw.github.com/dbpedia/DBpedia-Spotlight-Dashboard/main/images/doc/1_tabs.png)

How can I reference that image like:

[Figure 2](-reference-) shows the 4 main tabs of the dashboard

Hope you can help me. Thanks in advance.

like image 913
rayqz Avatar asked Aug 06 '26 11:08

rayqz


1 Answers

With Github markdown, you can use HTML tag a, set with the name on the object and href

On the object/image:

<a name="tabs">![Tabs](https://raw.github.com/dbpedia/DBpedia-Spotlight-Dashboard/main/images/doc/1_tabs.png)</a>

On the link text:

<a href="#tabs">Figure 2</a>

You may need to define unique name for every components and also unique among the headings.

like image 188
Dhana D. Avatar answered Aug 10 '26 09:08

Dhana D.