Beni Cherniavsky-Paskin katex: render into new node instead of into the script (where its invisible).  over 9 years ago

Commit id: 2134d0f14a8bfee1418ca0e5e1a98dbde8914588

deletions | additions      

       

if (script.type.match(/^math\/tex/)) {  var text = script.text === "" ? script.innerHTML : script.text;  if (script.type.match(/mode\s*=\s*display/)) {  katex.render("\displaymode{" text = "\displaymode{"  + text + "}", script);  } else {  katex.render(text, script); "}";  }  script.insertAdjacentHTML("beforebegin", katex.renderToString(text));  }  }