lib/components/render_content.js
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);
}
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);
}
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 ) ; }
Remove the footnote tokens from within a token list.
Remove the footnote tokens from within a token list .