mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-12 06:28:40 +00:00
Port buildHTML to @flow. (#1408)
* Port buildHTML to @flow. * Address reviewer comments. * Addressed reviewer comments.
This commit is contained in:
committed by
Kevin Barabash
parent
1dc261298e
commit
251283ffc1
@@ -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,
|
||||
|
Reference in New Issue
Block a user