varun
varun

Reputation: 231

Image not rendering in md format file in Gitlab

I have a directory called "features" in the root and inside this directory has image "state_transitation.JPG" and document "myMdc_features.md"

I am trying to add an image "state_transitation.JPG" to the md extension document "myMdc_features.md" in my repository by using markdown below:

![alt text](./state_transitation.JPG)

![alt text](/state_transitation.JPG)

![alt text](state_transitation.JPG)

<p>
<img src="state_transitation.JPG" />
</p>

I tried all above options but this is giving page could not be found error. 404

Both myMdc_features.md and image file are in same path/directory.

What is the correct way to display an image in gitlab myMdc_features.md?

Upvotes: 1

Views: 2142

Answers (1)

olearycrew
olearycrew

Reputation: 406

I think that the first option should work, assuming they are in the same folder. I made an example repostiory here that works.

Source of the file:

 Hello World

![](./i-have-no-idea-what-im-doing.jpg)

Output in GitLab: Picture of the output displaying as expected

Upvotes: 5

Related Questions