mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-19 17:48:41 +00:00
Rename .value to .text or .color where applicable. (#1606)
* Update comment for defineFunction handler. * Rename .value to .text in all token-style ParseNodes. * Rename symbolNode's .value to .text. * Rename color-token's .value to .color.
This commit is contained in:
@@ -369,7 +369,7 @@ defineFunction({
|
||||
} else {
|
||||
leftNode = assertAtomFamily(args[0], "open");
|
||||
}
|
||||
const leftDelim = delimFromValue(leftNode.value);
|
||||
const leftDelim = delimFromValue(leftNode.text);
|
||||
|
||||
let rightNode = checkNodeType(args[1], "ordgroup");
|
||||
if (rightNode) {
|
||||
@@ -377,7 +377,7 @@ defineFunction({
|
||||
} else {
|
||||
rightNode = assertAtomFamily(args[1], "close");
|
||||
}
|
||||
const rightDelim = delimFromValue(rightNode.value);
|
||||
const rightDelim = delimFromValue(rightNode.text);
|
||||
|
||||
const barNode = assertNodeType(args[2], "size");
|
||||
let hasBarLine;
|
||||
@@ -398,11 +398,11 @@ defineFunction({
|
||||
if (styl) {
|
||||
if (styl.value.length > 0) {
|
||||
const textOrd = assertNodeType(styl.value[0], "textord");
|
||||
size = stylArray[Number(textOrd.value)];
|
||||
size = stylArray[Number(textOrd.text)];
|
||||
}
|
||||
} else {
|
||||
styl = assertNodeType(args[3], "textord");
|
||||
size = stylArray[Number(styl.value)];
|
||||
size = stylArray[Number(styl.text)];
|
||||
}
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user