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.umd.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
  */
@@ -939,9 +939,9 @@
939
939
  + '|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption'
940
940
  + '|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe'
941
941
  + '|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option'
942
- + '|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr'
943
- + '|track|ul';
944
- const _comment = /<!--(?!-?>)[\s\S]*?(?:-->|$)/;
942
+ + '|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title'
943
+ + '|tr|track|ul';
944
+ const _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
945
945
  const html = edit('^ {0,3}(?:' // optional indentation
946
946
  + '<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)' // (1)
947
947
  + '|comment[^\\n]*(\\n+|$)' // (2)
@@ -1056,7 +1056,7 @@
1056
1056
  const br = /^( {2,}|\\)\n(?!\s*$)/;
1057
1057
  const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
1058
1058
  // list of unicode punctuation marks, plus any missing characters from CommonMark spec
1059
- const _punctuation = '\\p{P}$+<=>`^|~';
1059
+ const _punctuation = '\\p{P}\\p{S}';
1060
1060
  const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
1061
1061
  .replace(/punctuation/g, _punctuation).getRegex();
1062
1062
  // sequences em should skip over [title](link), `code`, <html>