function createEvent (rgx, evtName, wholeMatch, text, id, url, title, options, globals) {
    return globals.converter._dispatch(evtName, wholeMatch, options, globals, {
      regexp: rgx,
      matches: {
        wholeMatch: wholeMatch,
        text: text,
        id: id,
        url: url,
        title: title
      }
    });
  }
TODO Normalize this
Helper function: Create a capture event
@param {RegExp} rgx
@param {String} evtName Event name
@param {String} wholeMatch
@param {String} text
@param {String} id
@param {String} url
@param {String} title
@param {{}} options
@param {{}} globals
@returns {showdown.helper.Event|*}