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

16 lines
560 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
/**
* Return the content of a reference without definition as plain text.
*
* @param {State} state
* Info passed around.
* @param {Extract<Nodes, Reference>} node
* Reference node (image, link).
* @returns {Array<ElementContent>}
* hast content.
*/
export function revert(state: State, node: Extract<Nodes, Reference>): Array<ElementContent>;
export type ElementContent = import('hast').ElementContent;
export type Nodes = import('mdast').Nodes;
export type Reference = import('mdast').Reference;
export type State = import('./state.js').State;