How do you create a relative image link w/ GitHub Flavored Markdown? -


i'm working gfm series of github wikis need function across repos. have no issue embedded relative images [[/path/to/image.png]] or creating relative links [[link text|relative-link]], i've not been able figure out how combine 2 create link out of image. ideas?

the output i'm looking is:

<a href="/path/to/link">     <img src="/path/to/image.png" /> </a> 

two ways of doing it:

  1. using reference link

    [[[/images/gravatar.jpeg]]][1] [1]: http://www.inf.ufrgs.br 
  2. using link directly

    [[[/images/gravatar.jpeg]]](http://www.inf.ufrgs.br)  

the logic behind use double brackets wrap image , 1 wrap link. here example.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -