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

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

问题描述

我在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)没有 ./ 适合我: https:/ /gitlab.com/cirosantilli/test/blob/bffbcc928282ede14dcb42768f10a7ef21a665f1/markdown.md#image

      我h ave在以下地址开了一个请求: 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中的图像,路径以./ dot斜杠开头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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