gpt4 book ai didi

github - 我可以在 github 页面中使用带有图像链接的 Markdown 吗?

转载 作者:行者123 更新时间:2023-12-03 17:18:23 25 4
gpt4 key购买 nike

我管理github通过Jeckyl运行我的index.md并通过关注https://help.github.com/articles/creating-project-pages-manually/在github.io下显示它.但是,我的这种形式的图像链接:

 ![Sicherung vorbereiten](img/export.png?raw=true)

不要像他们在 README.md 中那样显示

从 markdown 文件运行时,我可以将图像与 github.io 一起使用吗?

最佳答案

添加 /在您的面前 img文件夹,像这样:

![Sicherung vorbereiten](/img/export.png)
我刚刚在测试 github pages 页面上尝试过它,它对我有用。
来源:官方 Jekyll 文档示例: https://jekyllrb.com/docs/posts/#including-images-and-resources .

Including images and resources

At some point, you’ll want to include images, downloads, or other digital assets along with your text content. One common solution is to create a folder in the root of the project directory called something like assets, into which any images, files or other resources are placed. Then, from within any post, they can be linked to using the site’s root as the path for the asset to include. The best way to do this depends on the way your site’s (sub)domain and path are configured, but here are some simple examples in Markdown:

Including an image asset in a post:

... which is shown in the screenshot below:
![My helpful screenshot](/assets/screenshot.jpg)

Linking to a PDF for readers to download:

... you can [get the PDF](/assets/mydoc.pdf) directly.

有关的
  • 有关其他图像处理说明,例如左对齐、居中对齐、右对齐、图像调整大小、文本换行等,请参阅我的其他答案:GitHub README.md center image
  • 关于github - 我可以在 github 页面中使用带有图像链接的 Markdown 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28613825/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com