marked 11.1.1 → 11.2.0

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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v9.0.0
1
+ // Generated by dts-bundle-generator v9.2.4
2
2
 
3
3
  export type Token = (Tokens.Space | Tokens.Code | Tokens.Heading | Tokens.Table | Tokens.Hr | Tokens.Blockquote | Tokens.List | Tokens.ListItem | Tokens.Paragraph | Tokens.HTML | Tokens.Text | Tokens.Def | Tokens.Escape | Tokens.Tag | Tokens.Image | Tokens.Link | Tokens.Strong | Tokens.Em | Tokens.Codespan | Tokens.Br | Tokens.Del | Tokens.Generic);
4
4
  export declare namespace Tokens {
package/lib/marked.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v9.0.0
1
+ // Generated by dts-bundle-generator v9.2.4
2
2
 
3
3
  export type Token = (Tokens.Space | Tokens.Code | Tokens.Heading | Tokens.Table | Tokens.Hr | Tokens.Blockquote | Tokens.List | Tokens.ListItem | Tokens.Paragraph | Tokens.HTML | Tokens.Text | Tokens.Def | Tokens.Escape | Tokens.Tag | Tokens.Image | Tokens.Link | Tokens.Strong | Tokens.Em | Tokens.Codespan | Tokens.Br | Tokens.Del | Tokens.Generic);
4
4
  export declare namespace Tokens {
package/lib/marked.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * marked v11.1.1 - a markdown parser
3
- * Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
2
+ * marked v11.2.0 - a markdown parser
3
+ * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
4
4
  * https://github.com/markedjs/marked
5
5
  */
6
6
 
@@ -2089,7 +2089,8 @@ class Marked {
2089
2089
  const genericToken = token;
2090
2090
  if (this.defaults.extensions?.childTokens?.[genericToken.type]) {
2091
2091
  this.defaults.extensions.childTokens[genericToken.type].forEach((childTokens) => {
2092
- values = values.concat(this.walkTokens(genericToken[childTokens], callback));
2092
+ const tokens = genericToken[childTokens].flat(Infinity);
2093
+ values = values.concat(this.walkTokens(tokens, callback));
2093
2094
  });
2094
2095
  }
2095
2096
  else if (genericToken.tokens) {