site/node_modules/mdast-util-to-hast/lib/handlers/html.d.ts

17 lines
507 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/**
* Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
* nothing).
*
* @param {State} state
* Info passed around.
* @param {Html} node
* mdast node.
* @returns {Element | Raw | undefined}
* hast node.
*/
export function html(state: State, node: Html): Element | Raw | undefined;
export type Element = import('hast').Element;
export type Html = import('mdast').Html;
export type State = import('../state.js').State;
export type Raw = import('../../index.js').Raw;