invokePlugins = (
  ast,
  info,
  plugins,
  overrides,
  globalOverrides,
) => {
  for (const plugin of plugins) {
    const override = overrides?.[plugin.name];
    if (override === false) {
      continue;
    }
    const params = { ...plugin.params, ...globalOverrides, ...override };

    const visitor = plugin.fn(ast, params, info);
    if (visitor != null) {
      visit(ast, visitor);
    }
  }
}
Plugins engine.

@module plugins

@param {import('../types.js').XastNode} ast Input AST.
@param {any} info Extra information.
@param {ReadonlyArray<any>} plugins Plugins property from config.
@param {any} overrides
@param {any} globalOverrides