【问题标题】:README images do not show up on repo main page自述文件图像未显示在 repo 主页上
【发布时间】:2021-06-28 16:48:30
【问题描述】:

我正在尝试使用以下命令在我的自述文件中包含图像:

<img src="./images/test.jpg" width="200">

But the contents of the image do not show up on the repo main page

The image does show up if I click on the README file, however

如果我使用 markdown 命令,我的图片会显示在主页上:

![][./images/test.jpg]

但是图像看起来非常大。我发现减小图像大小的唯一成功方法是使用上面的 html 命令。

是否有任何解决方案可以使图像显示在主页上或使用 markdown-style 命令减小图像的大小?

示例来自 Bitbucket,但我也在 GitHub 中对此进行了测试。同样的事情也会发生。

【问题讨论】:

    标签: html github bitbucket markdown readme


    【解决方案1】:

    对于 Github,您可以尝试直接链接。

    <img src="https://github.com/Repo/raw/main/src/socialcard.png" alt="Alt">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-12-04
      • 2020-11-03
      • 1970-01-01
      • 2014-01-23
      • 1970-01-01
      • 1970-01-01
      • 2012-01-30
      相关资源
      最近更新 更多