12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /**
- * Check whether a character code is an ASCII control character.
- *
- * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)
- * to U+001F (US), or U+007F (DEL).
- *
- * @param {Code} code
- * Code.
- * @returns {boolean}
- * Whether it matches.
- */
- export function asciiControl(code: Code): boolean;
- /**
- * Check whether a character code is a markdown line ending.
- *
- * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN
- * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).
- *
- * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE
- * RETURN (CR) are replaced by these virtual characters depending on whether
- * they occurred together.
- *
- * @param {Code} code
- * Code.
- * @returns {boolean}
- * Whether it matches.
- */
- export function markdownLineEnding(code: Code): boolean;
- /**
- * Check whether a character code is a markdown line ending (see
- * `markdownLineEnding`) or markdown space (see `markdownSpace`).
- *
- * @param {Code} code
- * Code.
- * @returns {boolean}
- * Whether it matches.
- */
- export function markdownLineEndingOrSpace(code: Code): boolean;
- /**
- * Check whether a character code is a markdown space.
- *
- * A **markdown space** is the concrete character U+0020 SPACE (SP) and the
- * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).
- *
- * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is
- * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL
- * SPACE (VS) characters, depending on the column at which the tab occurred.
- *
- * @param {Code} code
- * Code.
- * @returns {boolean}
- * Whether it matches.
- */
- export function markdownSpace(code: Code): boolean;
- export function asciiAlpha(code: Code): boolean;
- export function asciiAlphanumeric(code: Code): boolean;
- export function asciiAtext(code: Code): boolean;
- export function asciiDigit(code: Code): boolean;
- export function asciiHexDigit(code: Code): boolean;
- export function asciiPunctuation(code: Code): boolean;
- export function unicodePunctuation(code: Code): boolean;
- export function unicodeWhitespace(code: Code): boolean;
- export type Code = import('micromark-util-types').Code;
- //# sourceMappingURL=index.d.ts.map
|