docs: function popFootnoteTokens(tokens) {
    const from = tokens.findIndex(token => token.type === 'footnote_block_open');
    const to = tokens.findIndex(token => token.type === 'footnote_block_close');
    if (from === -1 || to === -1) {
      return [];
    }
  
    return tokens.splice(from, (to - from) + 1);
  }