Sebastian Flückiger
Sebastian Flückiger

Reputation: 5555

Markdown image not shown

I am writing some markdown ducuments using markdown pro (http://www.markdownpro.com/)

somehow not all images i add are shown in the final document:

i add them like this

<img src="./img/clv.png" height="100"/>

but the result looks like that

enter image description here

the file structure looks like that:

enter image description here

whereas 'summary' is my .md file

i have also tried markdown syntax

![](./img/clv.png)

and explicit closing tags

<img></img>

but always get the same result, no image is shown.

other ways i tried:

<img src="./img/clv.png" height="100"/>
<img src="../img/clv.png" height="100"/>
<img src="img/clv.png" height="100"/>
<img src="~/img/clv.png" height="100"/>

result:

enter image description here

Upvotes: 5

Views: 4030

Answers (1)

Neelesh
Neelesh

Reputation: 116

Hmm, try using the following tags instead:

<img src="../img/clv.png" height="100"/>
<img src="img/clv.png" height="100"/>
<img src="~/img/clv.png" height="100"/>

It looks like as if the problem is associated with the image's relative path. If this is correct, one of the above tags will work.

Upvotes: 2

Related Questions