Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 7

Markdown images problem

Solved! Go to Solution.

I have a problem referencing a image in my wiki using mardown...https://github.com/ejgutierrez74/MyBilliards/wiki

Here is my repo: https://github.com/ejgutierrez74/MyBilliards

 

 

Welcome to the MyBilliards wiki!

La meva primera imatge

Es veu:
![Billiards](https://github.com/ejgutierrez74/MyBilliards/blob/master/American(1024x585).jpg)

![Billiards JPG](../master/American(1024x585).jpg)

 

So i have an image in my root folder, if i get the url link in the first call, it works... But id prefer to work with local paths

like in the second call... Second call dont work and i have tried lots ( none of them works)..


![Billiards JPG](American(1024x585).jpg)


![Billiards JPG](/American(1024x585).jpg)


![Billiards JPG](/blob/master/American(1024x585).jpg)

 

I also would like to put all the images in a folder called documentImages and get all the images from it, just to mainteance and have some order.

 

Thanks

6 Replies
Solution
Commander Lvl 3
Message 2 of 7

Re: Markdown images problem

I think

[USERNAME]/[REPO]//blob/master/American(1024x585).jpg

will work.


- Mark
Copilot Lvl 3
Message 3 of 7

Re: Markdown images problem

It worked

But its complicated as you can wrote a markdown document in local using ( image.jpg, local urls) and when you work/upload the documents to the wiki you have to update all the links using:

[USERNAME]/[REPO]//blob/master/American(1024x585).jpg

 

If its not a bug, could be considered as a feature request, to use the same url in local and remote repos

Instead of:

[USERNAME]/[REPO]//blob/master/American(1024x585).jpg

 ( username, repo and blob, master can be added by default in images urls)

use:

American(1024x585).jpg
Community Manager
Message 4 of 7

Re: Markdown images problem

Hi Ejgutierrez74,

 

Thanks for this feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've logged your feature request in our internal feature request list.

 

Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.

 

Please let me know if you have any other questions.

Cheers!

Andrea


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 3
Message 5 of 7

Re: Markdown images problem

Thanks, keep me updated

 

Commander Lvl 3
Message 6 of 7

Re: Markdown images problem

Could you try

../blob/master/American(1024x585).jpg

? It should work as well an doesn’t require a username/repo in the URL.


- Mark
Copilot Lvl 3
Message 7 of 7

Re: Markdown images problem

This one doesnt work for me, but still think that to be in the same line and avoid some extra-work, the natural way is writing the same code locally than the wiki....

So ( images/American.jpg) should work and Github add USERNAME, REPO, blob, master, whatever is needed.... ( think of an assignment with 100 images or more....) It seems not very difficult to implement this. Just a thought and a request.

Thank for your work and help