remarkup.js
function copyAttributes (src, dst, ignored) {
  ignored = ignored || [];
  
  const srcAttribs = Object.keys(src.attribs || src.attributes);
  for (let i = 0; i < srcAttribs.length; ++i) {
    if (!ignored.test(srcAttribs[i], $(dst), $(src))) {
      dst.attribs[srcAttribs[i]] = src.attribs[srcAttribs[i]];
    }
  }
}
function copyAttributes (src, dst, ignored) {
  ignored = ignored || [];
  
  const srcAttribs = Object.keys(src.attribs || src.attributes);
  for (let i = 0; i < srcAttribs.length; ++i) {
    if (!ignored.test(srcAttribs[i], $(dst), $(src))) {
      dst.attribs[srcAttribs[i]] = src.attribs[srcAttribs[i]];
    }
  }
}
function copyAttributes ( src , dst , ignored ) { ignored = ignored || [ ] ; const srcAttribs = Object . keys ( src . attribs || src . attributes ) ; for ( let i = 0 ; i < srcAttribs . length ; ++ i ) { if ( ! ignored . test ( srcAttribs [ i ] , $ ( dst ) , $ ( src ) ) ) { dst . attribs [ srcAttribs [ i ] ] = src . attribs [ srcAttribs [ i ] ] ; } } }
copy all DOM attributes from src to dst
copy all DOM attributes from src to dst