##// END OF EJS Templates
Fixing latex rendering bug.
Brian E. Granger -
Show More
@@ -223,6 +223,10 b' var IPython = (function (IPython) {'
223 223
224 224 CodeCell.prototype.append_display_data = function (json) {
225 225 this.append_mime_type(json).addClass('output_area');
226 // If we just output latex, typeset it.
227 if (json.latex !== undefined) {
228 MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
229 };
226 230 };
227 231
228 232
@@ -232,12 +236,6 b' var IPython = (function (IPython) {'
232 236 this.append_html(json.html, element);
233 237 } else if (json.latex !== undefined) {
234 238 this.append_latex(json.latex, element);
235 // If it is undefined, then we just appended to div.output, which
236 // makes the latex visible and we can typeset it. The typesetting
237 // has to be done after the latex is on the page.
238 if (element === undefined) {
239 MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
240 };
241 239 } else if (json.svg !== undefined) {
242 240 this.append_svg(json.svg, element);
243 241 } else if (json.png !== undefined) {
General Comments 0
You need to be logged in to leave comments. Login now