【问题标题】:Why does the image display normally in github, while not in gitbook?为什么图片在github中正常显示,而在gitbook中却不显示?
【发布时间】:2016-07-19 02:30:26
【问题描述】:

我有一个托管在github 中并同步到gitbook 的文档。该文档的图片在github中正常显示:


虽然无法在gitbook中显示:

嵌入图片的代码如下:

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

为什么图像在github 中正常显示,而在gitbook 中却不显示?

【问题讨论】:

    标签: git github markdown github-flavored-markdown gitbook


    【解决方案1】:

    因为在 gitbook 中您需要指定直接链接(原始):

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

    gitbook 是单独的项目,它无法理解 github blob 链接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-06-14
      • 2023-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-01
      • 2019-05-02
      相关资源
      最近更新 更多