extract pretty_link() out of bridgy and move it here