Actually typeset latex

Matthias Bussonnier 11 years ago committed by Bussonnier Matthias
parent e1f4a76ea1
commit fe4bae10ac

@ -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();
}
}

Loading…
Cancel
Save