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.cjs +2 -2
- package/lib/marked.cjs.map +1 -1
- package/lib/marked.esm.js +2 -2
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +2 -2
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +1 -1
- package/marked.min.js +2 -2
- package/package.json +3 -3
package/lib/marked.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked v15.0.
|
|
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
|
*/
|
|
@@ -255,7 +255,7 @@ const inlineCode = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
|
|
|
255
255
|
const br = /^( {2,}|\\)\n(?!\s*$)/;
|
|
256
256
|
const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
|
|
257
257
|
// list of unicode punctuation marks, plus any missing characters from CommonMark spec
|
|
258
|
-
const _punctuation =
|
|
258
|
+
const _punctuation = /\p{P}\p{S}/u;
|
|
259
259
|
const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
|
|
260
260
|
.replace(/punctuation/g, _punctuation).getRegex();
|
|
261
261
|
// sequences em should skip over [title](link), `code`, <html>
|