marked 11.2.0 → 12.0.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.2.4
1
+ // Generated by dts-bundle-generator v9.2.5
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.2.4
1
+ // Generated by dts-bundle-generator v9.2.5
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,5 +1,5 @@
1
1
  /**
2
- * marked v11.2.0 - a markdown parser
2
+ * marked v12.0.0 - a markdown parser
3
3
  * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
4
4
  * https://github.com/markedjs/marked
5
5
  */
@@ -933,9 +933,9 @@ const _tag = 'address|article|aside|base|basefont|blockquote|body|caption'
933
933
  + '|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption'
934
934
  + '|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe'
935
935
  + '|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option'
936
- + '|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr'
937
- + '|track|ul';
938
- const _comment = /<!--(?!-?>)[\s\S]*?(?:-->|$)/;
936
+ + '|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title'
937
+ + '|tr|track|ul';
938
+ const _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
939
939
  const html = edit('^ {0,3}(?:' // optional indentation
940
940
  + '<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)' // (1)
941
941
  + '|comment[^\\n]*(\\n+|$)' // (2)
@@ -1050,7 +1050,7 @@ const inlineCode = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
1050
1050
  const br = /^( {2,}|\\)\n(?!\s*$)/;
1051
1051
  const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
1052
1052
  // list of unicode punctuation marks, plus any missing characters from CommonMark spec
1053
- const _punctuation = '\\p{P}$+<=>`^|~';
1053
+ const _punctuation = '\\p{P}\\p{S}';
1054
1054
  const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
1055
1055
  .replace(/punctuation/g, _punctuation).getRegex();
1056
1056
  // sequences em should skip over [title](link), `code`, <html>