resources/www/scripts/semantic-enrich.js
function (jax,id,script) {
    delete jax.enriched;
    if (this.config.disabled) return;
    try {
      this.running = true;
      var mml = sre.Enrich.semanticMathmlSync(jax.root.toMathML());
      jax.root = MathJax.InputJax.MathML.Parse.prototype.MakeMML(mml);
      jax.root.inputID = script.id;
      jax.enriched = true;
      this.running = false;
    } catch (err) {
      this.running = false;
      throw err;
    }
  }
function (jax,id,script) {
    delete jax.enriched;
    if (this.config.disabled) return;
    try {
      this.running = true;
      var mml = sre.Enrich.semanticMathmlSync(jax.root.toMathML());
      jax.root = MathJax.InputJax.MathML.Parse.prototype.MakeMML(mml);
      jax.root.inputID = script.id;
      jax.enriched = true;
      this.running = false;
    } catch (err) {
      this.running = false;
      throw err;
    }
  }
function ( jax , id , script ) { delete jax . enriched ; if ( this . config . disabled ) return ; try { this . running = true ; var mml = sre . Enrich . semanticMathmlSync ( jax . root . toMathML ( ) ) ; jax . root = MathJax . InputJax . MathML . Parse . prototype . MakeMML ( mml ) ; jax . root . inputID = script . id ; jax . enriched = true ; this . running = false ; } catch ( err ) { this . running = false ; throw err ; } }
If we are not disabled, Get the enriched MathML and parse it into the jax root. Mark the jax as enriched.
If we are not disabled Get the enriched MathML and parse it into the jax root . Mark the jax as enriched .