github

Linking to other Wiki pages on GitHub?


GitHub wikis allow you to link to other pages in the wiki like so:

[[Wiki Page Name]]

However, I want to display different text than the wiki page name when making the link. Is there a way to do this? Am I linking to wiki pages all wrong?


Solution

  • GitHub by default uses Markdown syntax for the wikis so you can just use the page's path:

    [Arbitrary Link Text](Wiki-Page-Name)
    

    Check out Markdown and this blog post for more information about their wikis and the other markup syntaxes they support.

    This solution has issues when you're on the home page because it creates relative URLs. Check out Sven's answer, below.