Port buildHTML to @flow. (#1408)

* Port buildHTML to @flow.

* Address reviewer comments.

* Addressed reviewer comments.
This commit is contained in:
Ashish Myles
2018-06-09 20:21:30 -04:00
committed by Kevin Barabash
parent 1dc261298e
commit 251283ffc1
7 changed files with 150 additions and 58 deletions

View File

@@ -12,7 +12,7 @@ import utils from "./utils";
import type Options from "./Options";
import type ParseNode, {AnyParseNode} from "./ParseNode";
import type {DomSpan, SvgSpan} from "./domTree";
import type {DomSpan, HtmlDomNode, SvgSpan} from "./domTree";
const stretchyCodePoint: {[string]: string} = {
widehat: "^",
@@ -300,7 +300,7 @@ const svgSpan = function(
};
const encloseSpan = function(
inner: DomSpan,
inner: HtmlDomNode,
label: string,
pad: number,
options: Options,