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.umd.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
  */
@@ -259,7 +259,7 @@
259
259
  const br = /^( {2,}|\\)\n(?!\s*$)/;
260
260
  const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
261
261
  // list of unicode punctuation marks, plus any missing characters from CommonMark spec
262
- const _punctuation = '\\p{P}\\p{S}';
262
+ const _punctuation = /\p{P}\p{S}/u;
263
263
  const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
264
264
  .replace(/punctuation/g, _punctuation).getRegex();
265
265
  // sequences em should skip over [title](link), `code`, <html>