index.d.ts 871 B

123456789101112131415161718192021222324252627
  1. /**
  2. * Combine multiple syntax extensions into one.
  3. *
  4. * @param {Array<Extension>} extensions
  5. * List of syntax extensions.
  6. * @returns {NormalizedExtension}
  7. * A single combined extension.
  8. */
  9. export function combineExtensions(
  10. extensions: Array<Extension>
  11. ): NormalizedExtension
  12. /**
  13. * Combine multiple HTML extensions into one.
  14. *
  15. * @param {Array<HtmlExtension>} htmlExtensions
  16. * List of HTML extensions.
  17. * @returns {HtmlExtension}
  18. * A single combined HTML extension.
  19. */
  20. export function combineHtmlExtensions(
  21. htmlExtensions: Array<HtmlExtension>
  22. ): HtmlExtension
  23. export type Extension = import('micromark-util-types').Extension
  24. export type Handles = import('micromark-util-types').Handles
  25. export type HtmlExtension = import('micromark-util-types').HtmlExtension
  26. export type NormalizedExtension =
  27. import('micromark-util-types').NormalizedExtension