title: Where is the documentation for how to access raw markdown for a GitHub wiki page?
body: <p>I read <a href="http://blogs.clariusconsulting.net/kzu/how-to-access-the-raw-markdown-source-for-a-github-wiki-page/" rel="nofollow noreferrer">a blog post</a> describing how to access the raw content inside a GitHub:</p>
  
  <blockquote>
    <p>This is not entirely obvious (at least it wasn’t for me), but since
    Github wikis are actually backed by a proper Git repo, I figured it
    should be possible to access the raw markdown for a page by using
    Github’s <a href="https://raw.github.com/" rel="nofollow noreferrer">https://raw.github.com/</a> style URLs.</p>
    
    <p>After some minor trial/error, it turns out to be very predictable (as
    many things in github):</p>
  
  <pre><code>https://raw.github.com/wiki/[user]/[project]/[page].md
  </code></pre>
  </blockquote>
  
  <p>I have a repo <a href="https://github.com/mbigras/hello-world" rel="nofollow noreferrer">mbigras/hello-world</a> with a wiki page <a href="https://github.com/mbigras/hello-world/wiki/foobar" rel="nofollow noreferrer">mbigras/hello-world/wiki/foobar</a>. So according to the pattern above the following should work:</p>
  
  <pre><code>https://raw.github.com/wiki/mbigras/hello-world/foobar.md
  </code></pre>
  
  <p>It seems like GitHub has changed its routing as shown below:</p>
  
  <pre><code>$ curl https://raw.github.com/wiki/mbigras/hello-world/foobar.md
  $ curl -Is https://raw.github.com/wiki/mbigras/hello-world/foobar.md 2&gt;&amp;1 | head -n 2
  HTTP/1.1 301 Moved Permanently
  Location: https://raw.githubusercontent.com/wiki/mbigras/hello-world/foobar.md
  $ curl -L https://raw.github.com/wiki/mbigras/hello-world/foobar.md
  {
    "foo": "bar",
    "cat": "dog",
    "red": "hat"
  }
  </code></pre>
  
  <p>So the new pattern seems to be:</p>
  
  <pre><code>https://raw.githubusercontent.com/wiki/[user]/[project]/[page].md
  </code></pre>
  
  <ul>
  <li>Does GitHub publish documentation about how to access the raw markdown source for a wiki page?</li>
  </ul>