mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 12:38:39 +00:00
Do bin -> ord for all the correct types
Fixes T1303 Auditors: alpert
This commit is contained in:
@@ -57,7 +57,8 @@ var groupTypes = {
|
|||||||
var atoms = prevAtom.value.value;
|
var atoms = prevAtom.value.value;
|
||||||
prevAtom = atoms[atoms.length - 1];
|
prevAtom = atoms[atoms.length - 1];
|
||||||
}
|
}
|
||||||
if (!prev || utils.contains(["bin", "open", "rel"], prevAtom.type)) {
|
if (!prev || utils.contains(["bin", "open", "rel", "op", "punct"],
|
||||||
|
prevAtom.type)) {
|
||||||
group.type = "ord";
|
group.type = "ord";
|
||||||
className = "mord";
|
className = "mord";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user