Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add image with link in Github's README.md?

How to add an image that is also a link to an external page on Github's README.md?

Adding a markdown to display an image is pretty simple (answer at Add images to README.md on GitHub). Adding a link is also pretty simple (GitHub relative link in Markdown file), but it seems there's is no way to add an image that is also a link to an external site.

<a href="https://stackoverflow.com/"><img src="RELATIVE_PATH_TO_IMAGE></img></a>
like image 764
Rafael Borja Avatar asked Apr 07 '20 00:04

Rafael Borja


People also ask

How do I add a link to a README.md GitHub?

Links. You can create an inline link by wrapping link text in brackets [ ] , and then wrapping the URL in parentheses ( ) . You can also use the keyboard shortcut Command + K to create a link.

Can README.md have images?

Likewise, we can any image to the README.md file. How to Add Videos on README .


1 Answers

Try simply the syntax:

[![name](link to image on GH)](link to your URL)

That will wrap the image as a link

like image 133
VonC Avatar answered Sep 22 '22 19:09

VonC