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

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

当前回答
你可能会发现下面的语法类似于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
其他回答
据我所知,对于Linux上的VSCode,只有当您将映像放入与.md post文件相同的文件夹中时,本地映像才能正常显示。 即只有! [](image.jpg)或将工作。 甚至像这样的绝对路径也不能工作。
根据你的工具-你也可以注入HTML markdown。
<img src="./img/Isolated.png">
这假设你的文件夹结构是:
├── img
└── Isolated.jpg
├── README.md
只要复制图像,然后粘贴,你就会得到输出

你可能会发现下面的语法类似于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
基本语法是。在我的例子中,我使用的图像名称为Any\ image \ of\ your\ choice.png In 而不是,这是行不通的。所以我会说,确保检查图像目录和图像名称不包含空格,如果这样使用下划线(_)而不是空格。
Ubuntu 18.04在Jupyter笔记本上使用markdown时遇到问题。