From 9d1613591a5e71c3c880f52c3f6a83b62e83774d 2014-01-12 21:54:47 From: Paul Ivanov Date: 2014-01-12 21:54:47 Subject: [PATCH] fix mathjax typesetting --- diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index 84372f7..45ee860 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -421,7 +421,7 @@ var IPython = (function (IPython) { this.append_mime_type(json, toinsert); this._safe_append(toinsert); // If we just output latex, typeset it. - if ((json.latex !== undefined) || (json.html !== undefined)) { + if ((json['text/latex'] !== undefined) || (json['text/html'] !== undefined)) { this.typeset(); } }; @@ -484,7 +484,7 @@ var IPython = (function (IPython) { if (this.append_mime_type(json, toinsert)) { this._safe_append(toinsert); // If we just output latex, typeset it. - if ( (json.latex !== undefined) || (json.html !== undefined) ) { + if ((json['text/latex'] !== undefined) || (json['text/html'] !== undefined)) { this.typeset(); } }