如何在当前目录中引用路径以 ./点斜杠开头的 GitLab markdown 中的图像? [英] How can I reference an image in GitLab markdown in the current directory with the path starting with ./ dot slash?

查看:15
本文介绍了如何在当前目录中引用路径以 ./点斜杠开头的 GitLab markdown 中的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 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:

    ![](./images/image.png)
    

    这在 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?

    推荐答案

    ![](images/image.png) 没有 ./ 对我有用: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 中的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆