Skip to content

Commit fce016d

Browse files
committed
Fix - latex super-script without leading symbol
1 parent 70f46ac commit fce016d

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
@@ -744,7 +744,8 @@ function parseLatex(node, arg, label, curr) {
744744
}
745745

746746
if (pos_up) {
747-
if (!pos_low) yup = Math.min(yup, curr.rect.last_y1);
747+
if (!pos_low && curr.rect)
748+
yup = Math.min(yup, curr.rect.last_y1);
748749
positionGNode(pos_up, x+dx, yup - pos_up.rect.y1 - curr.fsize*0.1);
749750
w1 = pos_up.rect.width;
750751
}

0 commit comments

Comments
 (0)