我有一个包含图像的简单 Markdown 文件:

Run Code Online (Sandbox Code Playgroud)
我正在使用 GitHub 查看器,在那里我可以看到图像,但没有标题/说明文字。有什么办法可以解决这个问题吗?
Chr*_*ris 19
Markdown 的链接/图像标题与标题不同,并且 Markdown 本身不支持标题。
但是,由于Markdown 支持内联 HTML,因此您可以使用<figure>和<figcaption>为图像添加标题。
以下是之前 MDN 链接中的示例:
<figure>
<img
src="https://developer.mozilla.org/static/img/favicon144.png"
alt="The beautiful MDN logo.">
<figcaption>MDN Logo</figcaption>
</figure>
Run Code Online (Sandbox Code Playgroud)