UNPKG

fortissimo-html

Version:

Fortissimo HTML - Flexible, Forgiving, Formatting HTML Parser

39 lines 1.21 kB
import { DomNode } from './dom'; import { EscapeOptions } from './characters'; export declare enum ValueQuoting { LEAVE_AS_IS = 0, ALWAYS_QUOTE = 1, UNQUOTE_INTEGERS = 2, UNQUOTE_SIMPLE_VALUES = 3 } export declare enum ValueQuoteStyle { PREFER_DOUBLE = 0, PREFER_SINGLE = 1, DOUBLE = 2, SINGLE = 3 } export interface HtmlFormatOptions extends EscapeOptions { alignAttributes?: boolean; continuationIndent?: number; childrenNotIndented?: string[]; dontBreakIfInline?: string[]; endDocumentWithNewline?: boolean; indent?: number; inline?: string[]; instantiateSyntheticNodes?: boolean; keepWhitespaceInside?: string[]; maxBlankLines?: number; newLineBefore?: string[]; normalizeAttributeSpacing?: boolean; removeNewLineBefore?: string[]; removeUnclosedTags?: boolean; spaceAroundAttributeEquals?: boolean; tabSize?: number; trimDocument?: boolean; undoUnneededEntities?: boolean; useTabCharacters?: boolean; valueQuoting?: ValueQuoting; valueQuoteStyle?: ValueQuoteStyle; } export declare function formatHtml(node: DomNode, options?: HtmlFormatOptions): void; //# sourceMappingURL=formatter.d.ts.map