index.d.ts 902 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Parse titles.
  3. *
  4. * ###### Examples
  5. *
  6. * ```markdown
  7. * "a"
  8. * 'b'
  9. * (c)
  10. * "a
  11. * b"
  12. * 'a
  13. * b'
  14. * (a\)b)
  15. * ```
  16. *
  17. * @param {Effects} effects
  18. * Context.
  19. * @param {State} ok
  20. * State switched to when successful.
  21. * @param {State} nok
  22. * State switched to when unsuccessful.
  23. * @param {TokenType} type
  24. * Type of the whole title (`"a"`, `'b'`, `(c)`).
  25. * @param {TokenType} markerType
  26. * Type for the markers (`"`, `'`, `(`, and `)`).
  27. * @param {TokenType} stringType
  28. * Type for the value (`a`).
  29. * @returns {State}
  30. * Start state.
  31. */
  32. export function factoryTitle(effects: Effects, ok: State, nok: State, type: TokenType, markerType: TokenType, stringType: TokenType): State;
  33. import type { Effects } from 'micromark-util-types';
  34. import type { State } from 'micromark-util-types';
  35. import type { TokenType } from 'micromark-util-types';
  36. //# sourceMappingURL=index.d.ts.map