code: function (data, callback) {
    if (!callback || typeof(callback) !== "function") {
      if (displayErrors) console.error("Missing callback");
      return;
    }
    var options = {};
    for (var id in defaults) {if (defaults.hasOwnProperty(id)) {
      options[id] = (data.hasOwnProperty(id) ? data[id]: defaults[id]);
    }}
    if (data.state) {options.state = data.state}
    if (!TYPES[options.format]) {ReportError("Unknown format: "+options.format,callback); return}
    queue.push([options,callback,Object.assign({},data)]);
    if (serverState == STATE.STOPPED) {RestartMathJax()}
    if (serverState == STATE.READY) StartQueue();
  }
docs: The API call to typeset an equation  %%% cache results? %%% check types and values of parameters  callback API for compatibility with MathJax