Skip to content

Commit 99903c2

Browse files
authored
Merge pull request #1048 from mathjax/fix-unicode
Fix processing of \U{...}.
2 parents 96c1018 + a87369e commit 99903c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ts/input/tex/ParseUtil.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ export const ParseUtil = {
557557
// Replace \U{...} with specified character
558558
const c = String.fromCodePoint(parseInt(arg[1] || arg[2], 16));
559559
text = text.substring(0, i - 2) + c + text.substring(i + arg[0].length);
560+
i = i - 2 + c.length;;
560561
}
561562
}
562563
}

0 commit comments

Comments
 (0)