How to add a relative link in GitHub README.md file?

You can refer a markdown file to another markdown file on GitHub using a relative link.

Suppose your GitHub repository stricture is like below:

The relative link to subtext.md in text.md might look like this:

The relative link to subsubtext.md in text.md might look like this:

The relative link to subtext.md in subsubtext.md might look like this:

The relative link to subsubtext2.md in subsubtext.md might look like this:

The relative link to text.md in subsubtext.md might look like this:

If you want to refer to an external file (not present in your repository), you can use an absolute like (anchor tag) like this:

Leave a Reply