function run(input, output, userOptions={}) {
  userOptions = Object.assign(userOptions, FORCED_OPTIONS);

  const staticDoc = document.implementation.createHTMLDocument('New Document');
  staticDoc.documentElement.innerHTML = input;

  const options = new capo.options.Options(userOptions);
  const io = new capo.io.IO(staticDoc.documentElement, options, output);

  io.init();
  logging.validateHead(io, capo.validation);
  logging.logWeights(io, capo.validation, capo.rules);
}
Interface for the capo.js web client.

For configuration options see:
https://rviscomi.github.io/capo.js/user/config/#configuring-the-snippet

@param input HTML string
@param output Mock console implementation
@param options Capo options