UNPKG

micromark

Version:

small commonmark compliant markdown parser with positional info and concrete tokens

11 lines (9 loc) 277 B
// Note: EOF is seen as ASCII control here, because `null < 32 == true`. function asciiControl(code) { return ( // Special whitespace codes (which have negative values), C0 and Control // character DEL code < 32 || code === 127 ) } export default asciiControl