docs: function (element) {
        var JAX = HUB.getAllJax(element);
        var i, m, script, span = MathJax.HTML.Element("span",{style:{display:"block"}});
        var math = [], jax, root;
        for (i = 0, m = JAX.length; i < m; i++) {
          jax = JAX[i], root = jax.root, SRE = root.SRE;
          if (SRE && SRE.action.length) {
            if (SRE.width == null) {
              jax.sreGetMetrics();
              SRE.m = SRE.width; SRE.M = 1000000;
            }
            script = jax.SourceElement();
            script.previousSibling.style.display = "none";
            script.parentNode.insertBefore(span.cloneNode(false),script);
            math.push([jax,script]);
          }
        }
        for (i = 0, m = math.length; i < m; i++) {
          jax = math[i][0], script = math[i][1];
          if (script.previousSibling.offsetWidth)
            jax.root.SRE.cwidth = script.previousSibling.offsetWidth * jax.root.SRE.em;
        }
        for (i = 0, m = math.length; i < m; i++) {
          jax = math[i][0], script = math[i][1];
          script.parentNode.removeChild(script.previousSibling);
          script.previousSibling.style.display = "";
        }
      }