marked 14.1.2 → 14.1.3

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 v14.1.2 - a markdown parser
2
+ * marked v14.1.3 - a markdown parser
3
3
  * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
4
4
  * https://github.com/markedjs/marked
5
5
  */
@@ -1122,7 +1122,7 @@ const _punctuation = '\\p{P}\\p{S}';
1122
1122
  const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
1123
1123
  .replace(/punctuation/g, _punctuation).getRegex();
1124
1124
  // sequences em should skip over [title](link), `code`, <html>
1125
- const blockSkip = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;
1125
+ const blockSkip = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g;
1126
1126
  const emStrongLDelim = edit(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, 'u')
1127
1127
  .replace(/punct/g, _punctuation)
1128
1128
  .getRegex();