Images stored in github are not displayed correctly.
coocoo03 opened this issue · 1 comments
For example, “https://github.com/hibara/TestRepository/blob/master/README.md” shows “https://github.com/hibara/TestRepository/blob/master/image/test.png”. This one is displayed when viewing "README.md" on github.
However, when accessing “https://raw.githubusercontent.com/hibara/TestRepository/master/README.md” and viewing it in Markdown Viewer, the image is not displayed.
This is because “https://github.com/hibara/TestRepository/blob/master/image/test.png” is a Github file property page, and if the path to a file stored on Github is specified in a Markdown file, like “https://github.com/hibara/TestRepository/blob/master/image/test.png”, Github will read it as “https://raw.githubusercontent.com/hibara/TestRepository/master/image/test.png”, which is the path to the githubusercontent However, Markdown Viewer does not have this functionality.
It would be helpful if Markdown Viewer could also consider implementing a function to read the paths of files stored on github.
Thank you in advance.
I have a similar issue where I want to use Markdown Viewer to render my md (instead of using a public Github page for my doc), I do this by leading to my doc via a [Main](Documentations/pages/main.md?raw=1) link in the README. On the raw file the picture does not showup. Which tokenize it main.md?token=GHSAT0AAAAAACY on https://raw.githubusercontent.com/.
It really seems to be the same issue.
That would be really nice to have a pictures, that would give a very clever and simple way to have a fast documentation without using Github Pages.