very-small-parser
Version:
A very small Markdown, HTML, and CSS parser.
11 lines (10 loc) • 364 B
TypeScript
import type { THtmlToken } from './types';
/**
* Pretty-prints an HTML node to text.
*
* @param node HTML node to convert to text
* @param tab Tabulation for children
* @param ident Current indentation
* @returns Text representation of the HTML node
*/
export declare const toText: (node: THtmlToken | THtmlToken[], tab?: string, ident?: string) => string;