mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-19 09:38:40 +00:00
Port katex, buildTree, parseTree to @flow. (#989)
This commit is contained in:
committed by
Kevin Barabash
parent
dc0c3970c2
commit
1d8cf3fa08
@@ -1,3 +1,4 @@
|
||||
// @flow
|
||||
import buildHTML from "./buildHTML";
|
||||
import buildMathML from "./buildMathML";
|
||||
import buildCommon from "./buildCommon";
|
||||
@@ -5,7 +6,14 @@ import Options from "./Options";
|
||||
import Settings from "./Settings";
|
||||
import Style from "./Style";
|
||||
|
||||
const buildTree = function(tree, expression, settings) {
|
||||
import type ParseNode from "./ParseNode";
|
||||
import type domTree from "./domTree";
|
||||
|
||||
const buildTree = function(
|
||||
tree: ParseNode[],
|
||||
expression: string,
|
||||
settings: Settings,
|
||||
): domTree.span {
|
||||
settings = settings || new Settings({});
|
||||
|
||||
let startStyle = Style.TEXT;
|
||||
|
Reference in New Issue
Block a user