bas knippels
bas knippels

Reputation: 53

github markdown no longer displays images

A month or 2 ago I wrote a markdown file for my github page and it contained png files. Today I was looking ad the markdown file on github and all images were removed. If I click on one I get the message: The image "link to image" cannot be displayed because it contains errors.

This is the link as the git hub page gives me https://raw.githubusercontent.com/bask185/State-Machine-Scripts/master/images/handleWheel.png

And this is how I try to display the file in the markdown file. exclamation mark [handleWheel ] (https://raw.githubusercontent.com/bask185/State-Machine-Scripts/master/images/handleWheel.png)

It worked once so I did something right once. Did github changed or did I do something wrong? Can I salvage my images?

Upvotes: 1

Views: 283

Answers (1)

GoodDeeds
GoodDeeds

Reputation: 8497

It looks like the images were linked to a relative path in your repository. You earlier had an images/ directory with the images that were shown in the markdown file, but this was removed in this commit.

If you browse the repository at the previous commit, you can see the images. The image corresponding to the link in your question, for example, is here.

This thread discusses various ways to add images to Markdown files in GitHub.

Upvotes: 1

Related Questions