GitHub Markdown – How to Display Images

githubmarkdown

I want to display some images in a Markdown file on Github. I found it works this way:

![Figure 1-1](https://raw.github.com/username/repo/master/images/figure 1-1.png "Figure 1-1")

But i need to collaborate with others so i don't want the username and repo name hard coded .

I tried to use this:

![Figure 1-1](images/figure 1-1.png "Figure 1-1")

It works on my local disk but not work on Github.

Is there anyone knows about this issue?

Best Answer

I found the answer myself.

Just simply append ?raw=true to the image url will make the trick:

![](images/table 1-1.png?raw=true)
Related Question