Map each footnote opener to the end of its close in one pass, using the same protected regions and nesting as findFootnoteEnd.
Map each footnote opener to the end of its close in one pass, using the same protected regions and nesting as findFootnoteEnd.