mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
fix mathjax typesetting
This commit is contained in:
parent
5423613ef3
commit
5209e82a96
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user