🗜️ build [skip ci]

This commit is contained in:
MarkedJS bot 2022-07-11 15:15:22 +00:00
parent 01c98d1c4e
commit 9fb57216fd
4 changed files with 10 additions and 7 deletions

View File

@ -622,7 +622,8 @@ var Tokenizer = /*#__PURE__*/function () {
if (!endEarly) { if (!endEarly) {
var nextBulletRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"); var nextBulletRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))");
var hrRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"); var hrRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)");
var fencesBeginRegex = new RegExp("^( {0," + Math.min(3, indent - 1) + "})(```|~~~)"); // Check if following lines should be included in List Item var fencesBeginRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}(?:```|~~~)");
var headingBeginRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}#"); // Check if following lines should be included in List Item
while (src) { while (src) {
rawLine = src.split('\n', 1)[0]; rawLine = src.split('\n', 1)[0];
@ -638,7 +639,7 @@ var Tokenizer = /*#__PURE__*/function () {
} // End list item if found start of new heading } // End list item if found start of new heading
if (this.rules.block.heading.test(line)) { if (headingBeginRegex.test(line)) {
break; break;
} // End list item if found start of new bullet } // End list item if found start of new bullet

View File

@ -536,7 +536,8 @@ class Tokenizer {
if (!endEarly) { if (!endEarly) {
const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`); const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`);
const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`); const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);
const fencesBeginRegex = new RegExp(`^( {0,${Math.min(3, indent - 1)}})(\`\`\`|~~~)`); const fencesBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:\`\`\`|~~~)`);
const headingBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}#`);
// Check if following lines should be included in List Item // Check if following lines should be included in List Item
while (src) { while (src) {
@ -554,7 +555,7 @@ class Tokenizer {
} }
// End list item if found start of new heading // End list item if found start of new heading
if (this.rules.block.heading.test(line)) { if (headingBeginRegex.test(line)) {
break; break;
} }

View File

@ -624,7 +624,8 @@
if (!endEarly) { if (!endEarly) {
var nextBulletRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"); var nextBulletRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))");
var hrRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"); var hrRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)");
var fencesBeginRegex = new RegExp("^( {0," + Math.min(3, indent - 1) + "})(```|~~~)"); // Check if following lines should be included in List Item var fencesBeginRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}(?:```|~~~)");
var headingBeginRegex = new RegExp("^ {0," + Math.min(3, indent - 1) + "}#"); // Check if following lines should be included in List Item
while (src) { while (src) {
rawLine = src.split('\n', 1)[0]; rawLine = src.split('\n', 1)[0];
@ -640,7 +641,7 @@
} // End list item if found start of new heading } // End list item if found start of new heading
if (this.rules.block.heading.test(line)) { if (headingBeginRegex.test(line)) {
break; break;
} // End list item if found start of new bullet } // End list item if found start of new bullet

2
marked.min.js vendored

File diff suppressed because one or more lines are too long