How can I reference an image in GitLab markdown in the current directory with the path starting with ./ dot slash?

lofidevops picture lofidevops · Nov 19, 2014 · Viewed 66.2k times · Source

I have stored a Markdown file and an image file in a Git repo as follows:

  • readme.markdown
  • images/
    • image.png

I reference the image from readme.markdown like this:

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

This renders as expected in ReText, but does not render when I push the repo to GitLab.

How can I reference the image from the Markdown file so that it renders when viewed in GitLab?

Answer

![](images/image.png) without the ./ works for me: https://gitlab.com/cirosantilli/test/blob/bffbcc928282ede14dcb42768f10a7ef21a665f1/markdown.md#image

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.