Search code examples
githubmarkdownwiki

In GitHub wiki, absolute links to Markdown leads to raw.githubusercontent


Here is my problem: I want to write a GitHub wiki where hypertext links to other pages are absolute paths (I have sub-folders and so on. In my case it would be easier this way).

That is, \[label](https://github.com/repo/../fileName.md).

When I click to the link, it leads to the right page, but without any interpretation of the Markdown format. How can I write this link so that it will lead to an interpreted page?


Solution

  • I just got my answer:

    We don't need any path to the file if we want it to be interpreted as a Markdown file. Just write the name and GitHub wiki will do the rest. Once you write a path (relative or absolute), GitHub will interpret it as a raw.githubusercontent.