测试gist的图片引用
![Koala](Koala.jpg)
![Koala](gist-id/Koala.jpg)
![Koala](raw/Koala.jpg)
访问时gist-url末尾必须加斜杠/
![Koala](gist-url/Koala.jpg)
- 从Gist引用
- 利用rawgit.com/user/gist-id/raw/file
- 利用bl.ocks.org/user/raw/gist-id/file 只加载js/css渲染html页面,gist下必须有index.html页面引用了图片,
https://bl.ocks.org/user/gist-id
同时渲染markdown文件
- gist.githubusercontent.com/user/gist-id/raw/file
- 利用rawgit.com/user/gist-id/raw/file
- 从GitHub仓库引用
注意:以上的图片引用在文件的路径前都可以加上一个blob-id,即.../blob-id/path/to/file
或者.../blob-id/file
,但由于blob-id是根据文件生成的,不可预测,所以引用文件时不宜加入。
Is it possible to make relative link to image in a markdown file in a gist?