marked 15.0.9 → 15.0.10
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 +3 -3
- package/lib/marked.cjs.map +1 -1
- package/lib/marked.esm.js +3 -3
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +3 -3
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +1 -1
- package/marked.min.js +2 -2
- package/package.json +1 -1
package/lib/marked.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked v15.0.
|
|
2
|
+
* marked v15.0.10 - a markdown parser
|
|
3
3
|
* Copyright (c) 2011-2025, Christopher Jeffrey. (MIT Licensed)
|
|
4
4
|
* https://github.com/markedjs/marked
|
|
5
5
|
*/
|
|
@@ -331,9 +331,9 @@ const tag = edit('^comment'
|
|
|
331
331
|
.replace('attribute', /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/)
|
|
332
332
|
.getRegex();
|
|
333
333
|
const _inlineLabel = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;
|
|
334
|
-
const link = edit(/^!?\[(label)\]\(\s*(href)(?:\
|
|
334
|
+
const link = edit(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/)
|
|
335
335
|
.replace('label', _inlineLabel)
|
|
336
|
-
.replace('href', /<(?:\\.|[^\n<>\\])+>|[
|
|
336
|
+
.replace('href', /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/)
|
|
337
337
|
.replace('title', /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/)
|
|
338
338
|
.getRegex();
|
|
339
339
|
const reflink = edit(/^!?\[(label)\]\[(ref)\]/)
|