kjelsrud.dev/node_modules/mdast-util-to-hast/lib/handlers/image-reference.d.ts

20 lines
604 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
/**
* Turn an mdast `imageReference` node into hast.
*
* @param {State} state
* Info passed around.
* @param {ImageReference} node
* mdast node.
* @returns {ElementContent | Array<ElementContent>}
* hast node.
*/
export function imageReference(
state: State,
node: ImageReference
): ElementContent | Array<ElementContent>
export type ElementContent = import('hast').ElementContent
export type Element = import('hast').Element
export type Properties = import('hast').Properties
export type ImageReference = import('mdast').ImageReference
export type State = import('../state.js').State