Skip to content

Commit 4ac2657

Browse files
committed
Fix - latex super-script without leading symbol
1 parent 06a17f5 commit 4ac2657

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/base/latex.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,8 @@ function parseLatex(node, arg, label, curr) {
720720
}
721721

722722
if (pos_up) {
723-
if (!pos_low) yup = Math.min(yup, curr.rect.last_y1);
723+
if (!pos_low && curr.rect)
724+
yup = Math.min(yup, curr.rect.last_y1);
724725
positionGNode(pos_up, x+dx, yup - pos_up.rect.y1 - curr.fsize*0.1);
725726
w1 = pos_up.rect.width;
726727
}

0 commit comments

Comments
 (0)