Files
Library/node_modules/mdast-util-to-hast/lib/handlers/html.d.ts
2026-01-09 23:05:52 -05:00

23 lines
663 B
TypeScript

/**
* @import {Element} from 'hast'
* @import {Html} from 'mdast'
* @import {State} from '../state.js'
* @import {Raw} from '../../index.js'
*/
/**
* 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;
import type { State } from '../state.js';
import type { Html } from 'mdast';
import type { Element } from 'hast';
import type { Raw } from '../../index.js';
//# sourceMappingURL=html.d.ts.map