有人知道如何在markdown显示本地图像吗?我不想为此设置网络服务器。
我尝试以下markdown,但它不起作用:

有人知道如何在markdown显示本地图像吗?我不想为此设置网络服务器。
我尝试以下markdown,但它不起作用:

当前回答
类unix操作系统的解决方案。
STEP BY STEP :创建一个名为Images的目录,并放置所有将由Markdown呈现的图像。 例如,将example.png放到Images中。 加载之前位于Images目录下的example.png。

注意:图像目录必须位于markdown文本文件的相同目录下,扩展名为.md。
其他回答
只要复制图像,然后粘贴,你就会得到输出

根据你的工具-你也可以注入HTML markdown。
<img src="./img/Isolated.png">
这假设你的文件夹结构是:
├── img
└── Isolated.jpg
├── README.md
要在markdown文件中添加图像,.md文件和图像应该在同一个目录中。在我的情况下,我的.md文件是在doc文件夹,所以我也移动图像到相同的文件夹。然后在.md文件中写入以下语法

[汽车图片](Car .png)
这对我来说很有效。
你可能会发现下面的语法类似于markdown中的引用链接,特别是当你有一个文本有许多相同的图像显示时:
![optional text description of the image][number]
[number]: URL
例如:
![][1]
![This is an optional description][2]
[1]: /home/jerzy/ComputerScience/Parole/Screenshot_2020-10-13_11-53-29.png
[2]: /home/jerzy/ComputerScience/Parole/Screenshot_2020-10-13_11-53-30.png
我怀疑这条路不对。正如user7412219所提到的,ubuntu和windows处理路径不同。试着把图片和你的笔记本放在同一个文件夹中,并使用:

在windows上,桌面应该在:C:\Users\jzhang\Desktop