kjelsrud.dev/node_modules/mdast-util-to-hast/lib/handlers/text.d.ts
2023-07-19 21:31:30 +02:00

15 lines
458 B
TypeScript

/**
* Turn an mdast `text` node into hast.
*
* @param {State} state
* Info passed around.
* @param {MdastText} node
* mdast node.
* @returns {HastText | HastElement}
* hast node.
*/
export function text(state: State, node: MdastText): HastText | HastElement
export type HastElement = import('hast').Element
export type HastText = import('hast').Text
export type MdastText = import('mdast').Text
export type State = import('../state.js').State