Format links of references correctly and remove blue boxes