VSTS中降价文档中图像的正确地址是什么?

Ara*_*and 5 git markdown visual-studio-code azure-devops

我在Visual Studio Team Services中托管的git存储库的根目录中有一个README.md文件.

当我通过项目门户在Web浏览器中导航到该文件时,我可以看到除图像之外的正确呈现的降价.我想在README文件中添加一些截图,并想知道引用存储在文件夹中的图像的正确方法.root of the repository/doc/images/image01.png

由于README文件也存储在存储库的根目录中,我认为它只是一个相对链接.在我的计算机(OSX)上使用Visual Studio代码时,我可以使用相对路径,并使用图像标记正确渲染图像,如下所示:

![Alt text](doc/images/readmeFileComparison.png?raw=true "Readme file side by side comparison")
Run Code Online (Sandbox Code Playgroud)

为了让我在浏览器(例如url)查看README文件时查看图像,图像标记是否必须不同:

https://myaccount.visualstudio.com/ProjectName/_git/repositoryName?path=%2FREADME.md&version=GBmaster&_a=contents

微软的指导,但必须有一些我缺少的东西.渲染降价时,我得到一个丢失的图像标记.如果我在新标签页中打开图像,我会收到HTTP 500错误并显示以下消息:

有关此错误的更多信息

项目doc/images/pullNewChangesFromMaster.png?raw = true在指定版本中不存在,或者您无权访问它.

即使地址已经或正在缺少来自地址的前导斜杠,我也会得到相同的错误.

 ![Alt text](doc/images/pullNewChangesFromMaster.png?raw=true "About to Pull down the new changes")
Run Code Online (Sandbox Code Playgroud)

要么

 ![Alt text](/doc/images/pullNewChangesFromMaster.png?raw=true "About to Pull down the new changes")
Run Code Online (Sandbox Code Playgroud)

Von*_*onC 4

阅读Microsoft 的指南页面,我没有看到?raw=true任何地方提到。

所以最好在没有它的情况下尝试你的相对链接。

![Alt text](doc/images/pullNewChangesFromMaster.png "About to Pull down the new changes")
Run Code Online (Sandbox Code Playgroud)