Urara-Blog/node_modules/.pnpm-store/v3/files/be/a74f700c8011c834ccb16624acac5e63a60a86e4f1b558d47836d1afbfa258641ccf7b61746c141154f9605326ce49cf2363865681e926f880913ba7abbb62
2022-08-14 01:14:53 +08:00

14 lines
460 B
Text

/**
* Classify whether a character code represents whitespace, punctuation, or
* something else.
*
* Used for attention (emphasis, strong), whose sequences can open or close
* based on the class of surrounding characters.
*
* Note that eof (`null`) is seen as whitespace.
*
* @param {Code} code
* @returns {number|undefined}
*/
export function classifyCharacter(code: Code): number | undefined
export type Code = import('micromark-util-types').Code