如何在Github的Markdown文件中显示图像? [英] How to display images in Markdown files of Github?

查看:254
本文介绍了如何在Github的Markdown文件中显示图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Guys



我想在我的Markdown文件中的github中显示一些图片。我发现它的工作方式如下:

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

但是我需要与其他人合作,所以我不希望用户名和回购商名称硬编码。



我试图使用这个:

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

它适用于我的本地磁盘,但不适用于github。



有没有人知道这个问题 ?感谢。

解决方案

我自己找到答案。
$ b

?raw = true 附加到图片网址会产生这样的诀窍:

 ![](图片/ table 1-1.png?raw = true)


Guys

I want to display some images in my Markdown file in 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 ? Thanks.

解决方案

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)

这篇关于如何在Github的Markdown文件中显示图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆