change links into footnotes.