Convert footnote references
Generate HTML for footnotes