简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM