Skip to content

Commit 598c1e7

Browse files
committed
When closing table cells, get new table pointer. Resolves issue #1013.
1 parent 4e9a33e commit 598c1e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unpacked/extensions/TeX/AMScd.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
7070
if (!c.match(/[><VA.|=]/)) {return this.Other(name)} else {this.i++}
7171

7272
var top = this.stack.Top();
73-
if (!top.isa(STACKITEM.array) || top.data.length) {this.CD_cell(name)}
73+
if (!top.isa(STACKITEM.array) || top.data.length) {
74+
this.CD_cell(name);
75+
top = this.stack.Top();
76+
}
7477
//
7578
// Add enough cells to place the arrow correctly
7679
//

0 commit comments

Comments
 (0)