如何在github中添加图像横幅?

Rah*_*hul 3 github readme

我想添加一个在搜索 Github 主题时显示的图像横幅(因为 repo 很突出)。

我想做这样的事情在此处输入图片说明

目前,我正在 readme.md 文件的顶部添加图像,但它不起作用。

<h1 align="center">
 <img src="image-url-here" />
</h1>

# rest of readme ..
Run Code Online (Sandbox Code Playgroud)

我该怎么做?

Sch*_*ern 5

那是您的存储库设置下的“社交预览”


README.md 是用Markdown编写的。然后将其翻译成 HTML。该md是“降价”。

你的 HTML 会这样写:

# [description of the image](image-url-here)
Run Code Online (Sandbox Code Playgroud)

#指示第一层标题并且![description of the image](image-url-here)是到带有“图像描述”alt 的图像的链接。

更多帮助可以在Writing On GitHub 中找到