fix bug with repeated footnotes; remove footnote class from spans moved to footnotes