Files
site/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts
T
site-admin 3ac81d5a52
deploy / build-and-publish (push) Successful in 1m37s
the editable site (validation-lab)
2026-11-21 08:03:55 +01:00

31 lines
658 B
TypeScript

/**
* @typedef {1 | 2 | 3 | 4 | 5 | 6 | 7} Kind
* Kind of HTML (flow) element.
*/
/**
* Infer the kind of HTML that `value` is.
*
* This works on valid trees as produced by `micromark`.
* Kinds:
*
* 1. raw
* 2. comment
* 3. instruction
* 4. declaration
* 5. cdata
* 6. block
* 7. other
*
* See: <https://spec.commonmark.org/0.31.2/#html-blocks>.
*
* @param {string} value
* HTML.
* @returns {Kind | undefined}
* Kind; `undefined` if unknown.
*/
export function htmlKind(value: string): Kind | undefined;
/**
* Kind of HTML (flow) element.
*/
export type Kind = 1 | 2 | 3 | 4 | 5 | 6 | 7;
//# sourceMappingURL=html-kind.d.ts.map