From 2ad63d51745868c1913ea43835ab211e5624cea6 2011-11-15 04:02:24 From: Pablo Winant Date: 2011-11-15 04:02:24 Subject: [PATCH] Latexify formulas contained in html text. closes gh-994 --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 044016e..62534e5 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -243,7 +243,7 @@ var IPython = (function (IPython) { this.append_mime_type(json, toinsert); this.element.find('div.output').append(toinsert); // If we just output latex, typeset it. - if (json.latex !== undefined) { + if ((json.latex !== undefined) || (json.html !== undefined)) { MathJax.Hub.Queue(["Typeset",MathJax.Hub]); }; }; @@ -295,7 +295,7 @@ var IPython = (function (IPython) { this.append_mime_type(json, toinsert) this.element.find('div.output').append(toinsert); // If we just output latex, typeset it. - if (json.latex !== undefined) { + if ( (json.latex !== undefined) || (json.html !== undefined) ) { MathJax.Hub.Queue(["Typeset",MathJax.Hub]); }; };