format the title and link outputs