问题描述
我在 Git 存储库中存储了一个 Markdown 文件和一个图像文件,如下所示:
I have stored a Markdown file and an image file in a Git repo as follows:
readme.markdown
图片/
image.png
我从
readme.markdown
引用图像,如下所示:I reference the image from
readme.markdown
like this:
这在 ReText 中按预期呈现,但当我将 repo 推送到 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?
推荐答案

没有./
对我有用:https://gitlab.com/cirosantilli/test/blob/bffbcc928282ede14dcb42768f10a7ef21a665f1/markdownmd#图像我已在以下位置提出允许此请求:http://feedback.gitlab.com/forums/176466-general/suggestions/6746307-support-markdown-image-path-in-current-directory-s ,但是当 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 中的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!