Relative links in markup files

Image of Yossef Mendelssohn

We show rendered markup in several places on GitHub, most notably including a
project’s main README on the Repository page itself.

Starting today, GitHub supports relative links in markup files. Now you can
link directly between different documentation files, whether you view the
documentation on GitHub itself, or locally, using a different markup renderer.

You want examples of link definitions and how they work? Here’s some
Markdown for you. Instead of an absolute link:

[a link](

…you can use a relative link:

[a relative link](

and we’ll make sure it gets linked to user/repo/blob/branch/

If you were using a workaround like [a workaround link](repo/blob/master/,
you’ll have to update your documentation to use the new syntax.

This also means your documentation can now easily stand on its own, without always
pointing to GitHub.

If you want more information, we have a help article for you. Happy documenting!

See what launched at GitHub Universe

Missed the main event? Learn more about everything that launched at GitHub Universe, from GitHub for mobile and a redesigned notifications experience to the GitHub Archive Program.

Read the day one keynote recap

Secure the world's code, together

On day two of GitHub Universe, we announced GitHub Security Lab, bringing together security researchers, maintainers, and companies across the industry to secure open source.

Read the day two keynote recap