有人知道如何在markdown显示本地图像吗?我不想为此设置网络服务器。

我尝试以下markdown,但它不起作用:

![](文件/ \用户形象/ jzhang桌面/孤立。png)


当前回答

要么将图像放在与markdown文件相同的文件夹中,要么使用图像的相对路径。

其他回答

在Jupyter笔记本Markdown,您可以使用

<img src="RelPathofFolder/File" style="width:800px;height:300px;">

我有一个解决办法:

a)互联网示例:

![image info e.g. Alt](URL Internet to Images.jpg "Image Description")

b)本地图像示例:

![image Info](file:///<Path to your File><image>.jpg "Image Description")
![image Info](file:///C:/Users/<name>/Pictures/<image>.jpg "Image Description")

涡轮字节

另一种不显示本地图像的可能性是无意缩进图像引用空格![alt text](文件)之前。

这使得它成为“代码块”而不是“图像包含”。只要去掉前面的空格。

我怀疑这条路不对。正如user7412219所提到的,ubuntu和windows处理路径不同。试着把图片和你的笔记本放在同一个文件夹中,并使用:

![alt text](Isolated.png "Title")

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

要么将图像放在与markdown文件相同的文件夹中,要么使用图像的相对路径。