replacing link by gist