Number footnotes in html conversion