mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 12:18:39 +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");
|
||||
}
|
||||
|
||||
case "keyVals": {
|
||||
throw new Error("KaTeX-a11y: keyVals not implemented yet");
|
||||
}
|
||||
|
||||
case "raw": {
|
||||
throw new Error("KaTeX-a11y: raw not implemented yet");
|
||||
}
|
||||
|
@@ -53,12 +53,6 @@ type ParseNodeTypes = {
|
||||
loc?: ?SourceLocation,
|
||||
color: string,
|
||||
|},
|
||||
"keyVals": {|
|
||||
type: "keyVals",
|
||||
mode: Mode,
|
||||
loc?: ?SourceLocation,
|
||||
keyVals: string,
|
||||
|},
|
||||
// To avoid requiring run-time type assertions, this more carefully captures
|
||||
// the requirements on the fields per the op.js htmlBuilder logic:
|
||||
// - `body` and `value` are NEVER set simultanouesly.
|
||||
|
Reference in New Issue
Block a user