index.d.ts 860 B

123456789101112131415161718192021
  1. /**
  2. * Turn an mdast syntax tree into markdown.
  3. *
  4. * @param {Nodes} tree
  5. * Tree to serialize.
  6. * @param {Options} [options]
  7. * Configuration (optional).
  8. * @returns {string}
  9. * Serialized markdown representing `tree`.
  10. */
  11. export function toMarkdown(tree: Nodes, options?: import("./types.js").Options | undefined): string;
  12. export type Nodes = import('mdast').Nodes;
  13. export type Enter = import('./types.js').Enter;
  14. export type Info = import('./types.js').Info;
  15. export type Join = import('./types.js').Join;
  16. export type FlowParents = import('./types.js').FlowParents;
  17. export type Options = import('./types.js').Options;
  18. export type PhrasingParents = import('./types.js').PhrasingParents;
  19. export type SafeConfig = import('./types.js').SafeConfig;
  20. export type State = import('./types.js').State;
  21. export type TrackFields = import('./types.js').TrackFields;