1

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
asked May 14, 2015 at 16:34

1 Answer 1

2

Two ways of doing it:

  1. Using a reference link

    [[[/images/gravatar.jpeg]]][1]
    [1]: http://www.inf.ufrgs.br
    
  2. Using 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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.