Format reference links better.