Reformat the links