I'm working with GFM for a series of Github wikis that will need to function across repos. I have no issue embedded relative images [[/path/to/image.png]] or creating relative links [[Link Text|Relative-link]], but I've not been able to figure out how to combine the two to create a link out of the image. Any ideas?
The output I'm looking for is:
<a href="/path/to/link">
<img src="/path/to/image.png" />
</a>
mklement0
453k68 gold badges729 silver badges991 bronze badges
1 Answer 1
Two ways of doing it:
Using a reference link
[[[/images/gravatar.jpeg]]][1] [1]: http://www.inf.ufrgs.brUsing a link directly
[[[/images/gravatar.jpeg]]](http://www.inf.ufrgs.br)
The logic behind is that we use double brackets to wrap an image and one extra to wrap a link. Here is an example.
answered May 15, 2015 at 1:46
GabrielOshiro
8,3624 gold badges48 silver badges58 bronze badges
Sign up to request clarification or add additional context in comments.