text.d.ts 496 B

12345678910111213141516
  1. /**
  2. * Turn an mdast `text` node into hast.
  3. *
  4. * @param {State} state
  5. * Info passed around.
  6. * @param {MdastText} node
  7. * mdast node.
  8. * @returns {HastElement | HastText}
  9. * hast node.
  10. */
  11. export function text(state: State, node: MdastText): HastElement | HastText;
  12. import type { State } from '../state.js';
  13. import type { Text as MdastText } from 'mdast';
  14. import type { Element as HastElement } from 'hast';
  15. import type { Text as HastText } from 'hast';
  16. //# sourceMappingURL=text.d.ts.map