mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
To @flow: fontMetrics, fontMetricsData, Options, Settings, Style (#848)
* To @flow: fontMetrics, fontMetricsData, Options, Settings, Style * Don't overuse $Shape, improve type checking for fontMetrics*, make maxSize required in OptionsData and update callers. * Remove eslintrc globals change, since eslint-plugin-flowtype makes it redundant. * Remove extra ?s in Options and Settings * Undo removal of width in fontMetrics and switch to `T | void` for nullable types in Options * fix typing of FontMetrics
This commit is contained in:
committed by
Kevin Barabash
parent
ccf09786cc
commit
0f9fb0a1ce
@@ -21,6 +21,7 @@ const getMathML = function(expr, settings) {
|
||||
// Setup the default options
|
||||
const options = new Options({
|
||||
style: startStyle,
|
||||
maxSize: Infinity,
|
||||
});
|
||||
|
||||
const built = buildMathML(parseTree(expr, usedSettings), expr, options);
|
||||
|
Reference in New Issue
Block a user