index.d.ts 724 B

123456789101112131415161718
  1. /**
  2. * Classify whether a code represents whitespace, punctuation, or something
  3. * else.
  4. *
  5. * Used for attention (emphasis, strong), whose sequences can open or close
  6. * based on the class of surrounding characters.
  7. *
  8. * > 👉 **Note**: eof (`null`) is seen as whitespace.
  9. *
  10. * @param {Code} code
  11. * Code.
  12. * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined}
  13. * Group.
  14. */
  15. export function classifyCharacter(code: Code): typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined;
  16. import type { Code } from 'micromark-util-types';
  17. import { constants } from 'micromark-util-symbol';
  18. //# sourceMappingURL=index.d.ts.map