mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 21:18:40 +00:00
Remove keyVals ParseNode type (#2067)
* Remove keyVals ParseNode type * Fix render-a11y-string-spec.js
This commit is contained in:
@@ -555,10 +555,6 @@ const handleObject = (
|
|||||||
throw new Error("KaTeX-a11y: array not implemented yet");
|
throw new Error("KaTeX-a11y: array not implemented yet");
|
||||||
}
|
}
|
||||||
|
|
||||||
case "keyVals": {
|
|
||||||
throw new Error("KaTeX-a11y: keyVals not implemented yet");
|
|
||||||
}
|
|
||||||
|
|
||||||
case "raw": {
|
case "raw": {
|
||||||
throw new Error("KaTeX-a11y: raw not implemented yet");
|
throw new Error("KaTeX-a11y: raw not implemented yet");
|
||||||
}
|
}
|
||||||
|
@@ -53,12 +53,6 @@ type ParseNodeTypes = {
|
|||||||
loc?: ?SourceLocation,
|
loc?: ?SourceLocation,
|
||||||
color: string,
|
color: string,
|
||||||
|},
|
|},
|
||||||
"keyVals": {|
|
|
||||||
type: "keyVals",
|
|
||||||
mode: Mode,
|
|
||||||
loc?: ?SourceLocation,
|
|
||||||
keyVals: string,
|
|
||||||
|},
|
|
||||||
// To avoid requiring run-time type assertions, this more carefully captures
|
// To avoid requiring run-time type assertions, this more carefully captures
|
||||||
// the requirements on the fields per the op.js htmlBuilder logic:
|
// the requirements on the fields per the op.js htmlBuilder logic:
|
||||||
// - `body` and `value` are NEVER set simultanouesly.
|
// - `body` and `value` are NEVER set simultanouesly.
|
||||||
|
Reference in New Issue
Block a user