Turn references into links