marked 13.0.0 → 13.0.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.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * marked v13.0.0 - a markdown parser
2
+ * marked v13.0.1 - a markdown parser
3
3
  * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
4
4
  * https://github.com/markedjs/marked
5
5
  */
@@ -2362,7 +2362,7 @@
2362
2362
  // eslint-disable-next-line prefer-rest-params
2363
2363
  return func.apply(this, arguments);
2364
2364
  }
2365
- return func(renderer.parser.parseInline(token.tokens), token.depth, unescape(renderer.parser.parseInline(token.tokens, renderer.parser.textRenderer)));
2365
+ return func.call(this, renderer.parser.parseInline(token.tokens), token.depth, unescape(renderer.parser.parseInline(token.tokens, renderer.parser.textRenderer)));
2366
2366
  };
2367
2367
  case 'code':
2368
2368
  return function (token) {
@@ -2371,7 +2371,7 @@
2371
2371
  // eslint-disable-next-line prefer-rest-params
2372
2372
  return func.apply(this, arguments);
2373
2373
  }
2374
- return func(token.text, token.lang, !!token.escaped);
2374
+ return func.call(this, token.text, token.lang, !!token.escaped);
2375
2375
  };
2376
2376
  case 'table':
2377
2377
  return function (token) {
@@ -2406,7 +2406,7 @@
2406
2406
  }
2407
2407
  body += this.tablerow({ text: cell });
2408
2408
  }
2409
- return func(header, body);
2409
+ return func.call(this, header, body);
2410
2410
  };
2411
2411
  case 'blockquote':
2412
2412
  return function (token) {
@@ -2416,7 +2416,7 @@
2416
2416
  return func.apply(this, arguments);
2417
2417
  }
2418
2418
  const body = this.parser.parse(token.tokens);
2419
- return func(body);
2419
+ return func.call(this, body);
2420
2420
  };
2421
2421
  case 'list':
2422
2422
  return function (token) {
@@ -2465,7 +2465,7 @@
2465
2465
  tokens: item.tokens
2466
2466
  });
2467
2467
  }
2468
- return func(body, ordered, start);
2468
+ return func.call(this, body, ordered, start);
2469
2469
  };
2470
2470
  case 'html':
2471
2471
  return function (token) {
@@ -2474,7 +2474,7 @@
2474
2474
  // eslint-disable-next-line prefer-rest-params
2475
2475
  return func.apply(this, arguments);
2476
2476
  }
2477
- return func(token.text, token.block);
2477
+ return func.call(this, token.text, token.block);
2478
2478
  };
2479
2479
  case 'paragraph':
2480
2480
  return function (token) {
@@ -2483,7 +2483,7 @@
2483
2483
  // eslint-disable-next-line prefer-rest-params
2484
2484
  return func.apply(this, arguments);
2485
2485
  }
2486
- return func(this.parser.parseInline(token.tokens));
2486
+ return func.call(this, this.parser.parseInline(token.tokens));
2487
2487
  };
2488
2488
  case 'escape':
2489
2489
  return function (token) {
@@ -2492,7 +2492,7 @@
2492
2492
  // eslint-disable-next-line prefer-rest-params
2493
2493
  return func.apply(this, arguments);
2494
2494
  }
2495
- return func(token.text);
2495
+ return func.call(this, token.text);
2496
2496
  };
2497
2497
  case 'link':
2498
2498
  return function (token) {
@@ -2501,7 +2501,7 @@
2501
2501
  // eslint-disable-next-line prefer-rest-params
2502
2502
  return func.apply(this, arguments);
2503
2503
  }
2504
- return func(token.href, token.title, this.parser.parseInline(token.tokens));
2504
+ return func.call(this, token.href, token.title, this.parser.parseInline(token.tokens));
2505
2505
  };
2506
2506
  case 'image':
2507
2507
  return function (token) {
@@ -2510,7 +2510,7 @@
2510
2510
  // eslint-disable-next-line prefer-rest-params
2511
2511
  return func.apply(this, arguments);
2512
2512
  }
2513
- return func(token.href, token.title, token.text);
2513
+ return func.call(this, token.href, token.title, token.text);
2514
2514
  };
2515
2515
  case 'strong':
2516
2516
  return function (token) {
@@ -2519,7 +2519,7 @@
2519
2519
  // eslint-disable-next-line prefer-rest-params
2520
2520
  return func.apply(this, arguments);
2521
2521
  }
2522
- return func(this.parser.parseInline(token.tokens));
2522
+ return func.call(this, this.parser.parseInline(token.tokens));
2523
2523
  };
2524
2524
  case 'em':
2525
2525
  return function (token) {
@@ -2528,7 +2528,7 @@
2528
2528
  // eslint-disable-next-line prefer-rest-params
2529
2529
  return func.apply(this, arguments);
2530
2530
  }
2531
- return func(this.parser.parseInline(token.tokens));
2531
+ return func.call(this, this.parser.parseInline(token.tokens));
2532
2532
  };
2533
2533
  case 'codespan':
2534
2534
  return function (token) {
@@ -2537,7 +2537,7 @@
2537
2537
  // eslint-disable-next-line prefer-rest-params
2538
2538
  return func.apply(this, arguments);
2539
2539
  }
2540
- return func(token.text);
2540
+ return func.call(this, token.text);
2541
2541
  };
2542
2542
  case 'del':
2543
2543
  return function (token) {
@@ -2546,7 +2546,7 @@
2546
2546
  // eslint-disable-next-line prefer-rest-params
2547
2547
  return func.apply(this, arguments);
2548
2548
  }
2549
- return func(this.parser.parseInline(token.tokens));
2549
+ return func.call(this, this.parser.parseInline(token.tokens));
2550
2550
  };
2551
2551
  case 'text':
2552
2552
  return function (token) {
@@ -2555,7 +2555,7 @@
2555
2555
  // eslint-disable-next-line prefer-rest-params
2556
2556
  return func.apply(this, arguments);
2557
2557
  }
2558
- return func(token.text);
2558
+ return func.call(this, token.text);
2559
2559
  };
2560
2560
  // do nothing
2561
2561
  }