fix MD generation of links