add support for nested footnote <span>s