自述文件中的 Azure Devops 图像来自相对路径

问题描述

我正在尝试将图像添加到自述文件中,但无法渲染。 据我在网上看到的,我当前的设置应该可以工作。

我的文件夹结构是这样的:

enter image description here

然后我尝试使用位于资源目​​录中的图像,但是没有用:

![Architecture view for AllProjects.png](./Resources/Architecture-view-for-AllProjects.png)

有什么建议吗?

解决方法

您的文件是 Architecture view for AllProjects.png,因此如果您添加 -,一切都应该没问题。

请查看here - Spaces in path to image file

我尝试使用 %20 对其进行编码,但链接仍然损坏。因此,您唯一/最好的方法是在名称中添加 -

,

这对我来说似乎很有效:用  %20 替换空格。

![Architecture view for AllProjects.png](./Resources/Architecture%20view%20for%20AllProjects.png)

![Architecture view for AllProjects.png](./Resources/Architecture view for AllProjects.png)

结果:

enter image description here