marked 11.1.0 → 11.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/marked.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * marked v11.1.0 - a markdown parser
2
+ * marked v11.1.1 - a markdown parser
3
3
  * Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
4
4
  * https://github.com/markedjs/marked
5
5
  */
@@ -1262,10 +1262,11 @@ class _Lexer {
1262
1262
  src = src
1263
1263
  .replace(/\r\n|\r/g, '\n');
1264
1264
  this.blockTokens(src, this.tokens);
1265
- let next;
1266
- while (next = this.inlineQueue.shift()) {
1265
+ for (let i = 0; i < this.inlineQueue.length; i++) {
1266
+ const next = this.inlineQueue[i];
1267
1267
  this.inlineTokens(next.src, next.tokens);
1268
1268
  }
1269
+ this.inlineQueue = [];
1269
1270
  return this.tokens;
1270
1271
  }
1271
1272
  blockTokens(src, tokens = []) {