index.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Parse labels.
  3. *
  4. * > 👉 **Note**: labels in markdown are capped at 999 characters in the string.
  5. *
  6. * ###### Examples
  7. *
  8. * ```markdown
  9. * [a]
  10. * [a
  11. * b]
  12. * [a\]b]
  13. * ```
  14. *
  15. * @this {TokenizeContext}
  16. * Tokenize context.
  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 label (`[a]`).
  25. * @param {TokenType} markerType
  26. * Type for the markers (`[` and `]`).
  27. * @param {TokenType} stringType
  28. * Type for the identifier (`a`).
  29. * @returns {State}
  30. * Start state.
  31. */
  32. export function factoryLabel(this: TokenizeContext, 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. import type { TokenizeContext } from 'micromark-util-types';
  37. //# sourceMappingURL=index.d.ts.map