mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-19 17:48:41 +00:00
Flatten ParseNodes: "supsub" and related ("accent", "accentUnder", "horizBrace", "xarrow", "op"). (#1542)
This commit is contained in:
@@ -402,7 +402,8 @@ defineFunction({
|
||||
let styl = checkNodeType(args[3], "ordgroup");
|
||||
if (styl) {
|
||||
if (styl.value.length > 0) {
|
||||
size = stylArray[Number(styl.value[0].value)];
|
||||
const textOrd = assertNodeType(styl.value[0], "textord");
|
||||
size = stylArray[Number(textOrd.value)];
|
||||
}
|
||||
} else {
|
||||
styl = assertNodeType(args[3], "textord");
|
||||
|
Reference in New Issue
Block a user