code: function check(node, index, parent) {
      var url = node.url
  
      if ('identifier' in node) {
        url = references(node.identifier)
        url = url && url.url
      }
  
      if (badge(url)) {
        if (parent.type === 'link' || parent.type === 'linkReference') {
          remove.push(parent)
        } else {
          remove.push(node)
        }
      }
    }
docs: /* Visitor that queues badge images for removal.
  If the parent of `node` is a link or link-reference,
  that parent is queued.