2023-07-21 22:49:08 -07:00
|
|
|
// @ts-check
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
2024-09-28 16:26:38 -07:00
|
|
|
// 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");
|
|
|
|
|
2023-07-21 22:49:08 -07:00
|
|
|
// 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;
|
2023-10-18 23:20:19 -07:00
|
|
|
|
|
|
|
// Regular expression for matching next lines
|
|
|
|
module.exports.nextLinesRe = /[\r\n][\s\S]*$/;
|