marked 15.0.1 → 15.0.2

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 v15.0.1 - a markdown parser
2
+ * marked v15.0.2 - a markdown parser
3
3
  * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
4
4
  * https://github.com/markedjs/marked
5
5
  */
@@ -253,7 +253,7 @@ const inlineCode = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
253
253
  const br = /^( {2,}|\\)\n(?!\s*$)/;
254
254
  const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
255
255
  // list of unicode punctuation marks, plus any missing characters from CommonMark spec
256
- const _punctuation = '\\p{P}\\p{S}';
256
+ const _punctuation = /\p{P}\p{S}/u;
257
257
  const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
258
258
  .replace(/punctuation/g, _punctuation).getRegex();
259
259
  // sequences em should skip over [title](link), `code`, <html>