From f2f715beb6217a91e79c750200fcdee29405e231 Mon Sep 17 00:00:00 2001 From: Pablo Winant Date: Sun, 13 Nov 2011 13:52:21 +0100 Subject: [PATCH] Latexify formulas contained in html text. closes gh-994 --- IPython/frontend/html/notebook/static/js/codecell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 044016e07..62534e5c5 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]); }; };