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.esm.js 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
  */
@@ -1260,10 +1260,11 @@ class _Lexer {
1260
1260
  src = src
1261
1261
  .replace(/\r\n|\r/g, '\n');
1262
1262
  this.blockTokens(src, this.tokens);
1263
- let next;
1264
- while (next = this.inlineQueue.shift()) {
1263
+ for (let i = 0; i < this.inlineQueue.length; i++) {
1264
+ const next = this.inlineQueue[i];
1265
1265
  this.inlineTokens(next.src, next.tokens);
1266
1266
  }
1267
+ this.inlineQueue = [];
1267
1268
  return this.tokens;
1268
1269
  }
1269
1270
  blockTokens(src, tokens = []) {