我将Markdown文件和图像文件存储在Git存储库中,如下所示:
readme.markdown
images/
image.png
我从readme.markdown
这样引用图像:

这将在ReText中按预期方式呈现,但在将存储库推送到GitLab时不会呈现。
如何从Markdown文件中引用图像,以便在GitLab中查看时呈现?
Answers:

没有./
适合我的作品:https : //gitlab.com/cirosantilli/test/blob/bffbcc928282ede14dcb42768f10a7ef21a665f1/markdown.md#image
我已在http://feedback.gitlab.com/forums/176466-general/suggestions/6746307-support-markdown-image-path-in-current-directory-s中打开了允许该请求的请求,但是它当GitLab转储UserVoice时,Internet进入无效状态。
我的扩展程序中的readme.md中的徽标和Gitlab(在Ubuntu服务器上运行)都存在相同的问题。
Ubuntu版本:16.04.2 LTS
Gitlab版本:10.3.4 56dc722
您还可以通过以下步骤在自己的readme.md中使用片段来进行图像使用:
如果出现以下错误,您将忘记第5点:
该表格包含以下错误:
内容不能为空
现在,如果您再次编辑代码段,则可以复制如下所示的图像代码:

到您的readme.md文件。
如果您还想使用链接,它必须看起来像这样:
[](https://your-destination.com)
希望对其他人有帮助
image.svg.txt
,并且不显示图像
在GitLab Markdown中,您可以通过两种不同的方式将图像添加到Markdown文件中。
内联样式:

参考样式:
![alt text1][logo]
[logo]: img/markdown_logo.png "Title Text"
您可以使用上述任何一种方法。在您的情况下,删除./
将是解决方案。

有关GitLab Markdown的更多信息。
./
并且有效。我编辑我的文章