mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
build(deps): update dependencies (#2301)
* Bump flow version * Bump jest version * Bump eslint version * Bump rollup version * Bump webpack version * Bump misc dependencies and update lockfile * Update lockfile * Bump commander version * Bump misc dependencies * Bump istanbul version * Bump docusaurus version * Update lockfile * Explicitly declare dependencies * Bump caniuse-lite version * Update lockfile * Bump commander version * Bump webpack and css-loader version * Bump flow version
This commit is contained in:
@@ -975,6 +975,7 @@ export default class Parser {
|
||||
text,
|
||||
};
|
||||
}
|
||||
// $FlowFixMe
|
||||
symbol = s;
|
||||
} else if (text.charCodeAt(0) >= 0x80) { // no symbol for e.g. ^
|
||||
if (this.settings.strict) {
|
||||
@@ -1025,10 +1026,12 @@ export default class Parser {
|
||||
label: command,
|
||||
isStretchy: false,
|
||||
isShifty: true,
|
||||
// $FlowFixMe
|
||||
base: symbol,
|
||||
};
|
||||
}
|
||||
}
|
||||
// $FlowFixMe
|
||||
return symbol;
|
||||
}
|
||||
}
|
||||
|
@@ -219,6 +219,7 @@ export const buildGroup = function(
|
||||
// Call the groupBuilders function
|
||||
// $FlowFixMe
|
||||
const result: MathDomNode = groupBuilders[group.type](group, options);
|
||||
// $FlowFixMe
|
||||
return result;
|
||||
} else {
|
||||
throw new ParseError(
|
||||
|
@@ -108,7 +108,6 @@ export default function defineEnvironment<NODETYPE: NodeType>({
|
||||
// TODO: The value type of _environments should be a type union of all
|
||||
// possible `EnvSpec<>` possibilities instead of `EnvSpec<*>`, which is
|
||||
// an existential type.
|
||||
// $FlowFixMe
|
||||
_environments[names[i]] = data;
|
||||
}
|
||||
if (htmlBuilder) {
|
||||
|
@@ -6,7 +6,6 @@ import environments from "../environments";
|
||||
|
||||
// Environment delimiters. HTML/MathML rendering is defined in the corresponding
|
||||
// defineEnvironment definitions.
|
||||
// $FlowFixMe, "environment" handler returns an environment ParseNode
|
||||
defineFunction({
|
||||
type: "environment",
|
||||
names: ["\\begin", "\\end"],
|
||||
@@ -14,6 +13,7 @@ defineFunction({
|
||||
numArgs: 1,
|
||||
argTypes: ["text"],
|
||||
},
|
||||
// $FlowFixMe, "environment" handler returns an environment ParseNode
|
||||
handler({parser, funcName}, args) {
|
||||
const nameGroup = args[0];
|
||||
if (nameGroup.type !== "ordgroup") {
|
||||
|
@@ -61,7 +61,6 @@ export const htmlBuilder: HtmlBuilderSupSub<"op"> = (grp, options) => {
|
||||
// No font glyphs yet, so use a glyph w/o the oval.
|
||||
// TODO: When font glyphs are available, delete this code.
|
||||
stash = group.name.substr(1);
|
||||
// $FlowFixMe
|
||||
group.name = stash === "oiint" ? "\\iint" : "\\iiint";
|
||||
}
|
||||
|
||||
@@ -82,7 +81,6 @@ export const htmlBuilder: HtmlBuilderSupSub<"op"> = (grp, options) => {
|
||||
{type: "elem", elem: oval, shift: large ? 0.08 : 0},
|
||||
],
|
||||
}, options);
|
||||
// $FlowFixMe
|
||||
group.name = "\\" + stash;
|
||||
base.classes.unshift("mop");
|
||||
// $FlowFixMe
|
||||
|
@@ -458,6 +458,7 @@ export function assertNodeType<NODETYPE: NodeType>(
|
||||
`Expected node of type ${type}, but got ` +
|
||||
(node ? `node of type ${node.type}` : String(node)));
|
||||
}
|
||||
// $FlowFixMe, >=0.125
|
||||
return node;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user