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:
using reference link
[[[/images/gravatar.jpeg]]][1] [1]: http://www.inf.ufrgs.brusing link directly
[[[/images/gravatar.jpeg]]](http://www.inf.ufrgs.br)
the logic behind use double brackets wrap image , 1 wrap link. here example.
Comments
Post a Comment