Nan Xiao Nan Xiao - 4 months ago 18
Markdown Question

Why does the image display normally in github, while not in gitbook?

I have a document which is hosted in

github
and synchronizes to
gitbook
. The image of this doc display normally in github:

enter image description here

While it can't be displayed in gitbook:

enter image description here
The code of embedding image is as follows:

![image](https://github.com/NanXiao/FreeBSD-101-Hacks/blob/master/images/shutdown-h-now.JPG)


Why does the image display normally in
github
, while not in
gitbook
?

Answer

Because in gitbook you need specify direct link(raw):

![image](https://raw.githubusercontent.com/NanXiao/FreeBSD-101-Hacks/master/images/shutdown-h-now.JPG)

gitbook is separate project and it can't understand github blob link.

Comments