fix links & footnotes