Format links correctly.