fn collect_footnote_def<'a>( events: impl Iterator<Item = (Event<'a>, Range<usize>)>, ) -> Vec<Event<'a>>