html.d.ts 663 B

1234567891011121314151617181920212223
  1. /**
  2. * @import {Element} from 'hast'
  3. * @import {Html} from 'mdast'
  4. * @import {State} from '../state.js'
  5. * @import {Raw} from '../../index.js'
  6. */
  7. /**
  8. * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
  9. * nothing).
  10. *
  11. * @param {State} state
  12. * Info passed around.
  13. * @param {Html} node
  14. * mdast node.
  15. * @returns {Element | Raw | undefined}
  16. * hast node.
  17. */
  18. export function html(state: State, node: Html): Element | Raw | undefined;
  19. import type { State } from '../state.js';
  20. import type { Html } from 'mdast';
  21. import type { Element } from 'hast';
  22. import type { Raw } from '../../index.js';
  23. //# sourceMappingURL=html.d.ts.map