break.d.ts 582 B

123456789101112131415161718192021
  1. /**
  2. * @import {Element, Text} from 'hast'
  3. * @import {Break} from 'mdast'
  4. * @import {State} from '../state.js'
  5. */
  6. /**
  7. * Turn an mdast `break` node into hast.
  8. *
  9. * @param {State} state
  10. * Info passed around.
  11. * @param {Break} node
  12. * mdast node.
  13. * @returns {Array<Element | Text>}
  14. * hast element content.
  15. */
  16. export function hardBreak(state: State, node: Break): Array<Element | Text>;
  17. import type { State } from '../state.js';
  18. import type { Break } from 'mdast';
  19. import type { Element } from 'hast';
  20. import type { Text } from 'hast';
  21. //# sourceMappingURL=break.d.ts.map