From fe4bae10ac31c7b9fadd24ebd8423b1afa4e2f11 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Sun, 16 Nov 2014 15:40:38 +0100 Subject: [PATCH] Actually typeset latex --- IPython/html/static/notebook/js/outputarea.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index ae56b948a..e86dc20bb 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -415,9 +415,9 @@ define([ } this._safe_append(toinsert); // If we just output latex, typeset it. - if ((json['text/latex'] !== undefined) || - (json['text/html'] !== undefined) || - (json['text/markdown'] !== undefined)) { + if ((json.data['text/latex'] !== undefined) || + (json.data['text/html'] !== undefined) || + (json.data['text/markdown'] !== undefined)) { this.typeset(); } }; @@ -487,9 +487,9 @@ define([ if (this.append_mime_type(json, toinsert, handle_inserted)) { this._safe_append(toinsert); // If we just output latex, typeset it. - if ((json['text/latex'] !== undefined) || - (json['text/html'] !== undefined) || - (json['text/markdown'] !== undefined)) { + if ((json.data['text/latex'] !== undefined) || + (json.data['text/html'] !== undefined) || + (json.data['text/markdown'] !== undefined)) { this.typeset(); } }