UNPKG

markdownlint-rule-helpers

Version:

A collection of markdownlint helper functions for custom rules

17 lines (11 loc) 532 B
// @ts-check "use strict"; // Symbol for identifing the flat tokens array from micromark parse module.exports.flatTokensSymbol = Symbol("flat-tokens"); // Symbol for identifying the htmlFlow token from micromark parse module.exports.htmlFlowSymbol = Symbol("html-flow"); // Regular expression for matching common newline characters // See NEWLINES_RE in markdown-it/lib/rules_core/normalize.js module.exports.newLineRe = /\r\n?|\n/g; // Regular expression for matching next lines module.exports.nextLinesRe = /[\r\n][\s\S]*$/;