问题描述
我在Git仓库中存储了Markdown文件和图像文件,如下所示:
I have stored a Markdown file and an image file in a Git repo as follows:
-
自述文件。降价
-
images /
-
image.png
readme.markdown
images/
image.png
我引用
readme.markdown
中的图像,如下所示:I reference the image from
readme.markdown
like this:![](./images/image.png)
这在ReText中按预期呈现,但是当我将回购推送到GitLab时不会呈现。
This renders as expected in ReText, but does not render when I push the repo to GitLab.
如何从Markdown文件中引用图像,以便在GitLab中查看时呈现?
How can I reference the image from the Markdown file so that it renders when viewed in GitLab?
推荐答案
![](images / image.png)
没有./
适合我:我h ave在以下地址开了一个请求:,但它当GitLab转储UserVoice时,进入Internet无效。
I have opened a request for this to be allowed at: http://feedback.gitlab.com/forums/176466-general/suggestions/6746307-support-markdown-image-path-in-current-directory-s , but it entered into Internet void when GitLab dumped UserVoice.
这篇关于如何在当前目录中引用GitLab markdown中的图像,路径以./ dot斜杠开头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
-