1234567891011121314151617181920212223242526272829303132333435 |
- import {
- markdownLineEndingOrSpace,
- unicodePunctuation,
- unicodeWhitespace
- } from 'micromark-util-character'
- export function classifyCharacter(code) {
- if (
- code === null ||
- markdownLineEndingOrSpace(code) ||
- unicodeWhitespace(code)
- ) {
- return 1
- }
- if (unicodePunctuation(code)) {
- return 2
- }
- }
|