fortissimo-html
Version:
Fortissimo HTML - Flexible, Forgiving, Formatting HTML Parser
16 lines • 648 B
TypeScript
import { DomElement } from './dom';
declare type HtmlColor = 'attrib' | 'background' | 'bg_whitespace' | 'comment' | 'entity' | 'error' | 'foreground' | 'invalid' | 'markup' | 'tag' | 'value' | 'warning' | 'whitespace';
export interface HtmlStyleOptions {
colors?: Record<HtmlColor, string>;
dark?: boolean;
font?: string;
includeCopyScript?: boolean;
outerTag?: 'html' | 'body' | 'div';
showWhitespace?: boolean;
stylePrefix?: string;
tabSize?: number;
title?: string;
}
export declare function stylizeHtml(elem: DomElement, options?: HtmlStyleOptions): string;
export {};
//# sourceMappingURL=stylizer.d.ts.map