marked 11.2.0 → 12.0.0
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 +5 -5
- package/lib/marked.cjs.map +1 -1
- package/lib/marked.d.cts +1 -1
- package/lib/marked.d.ts +1 -1
- package/lib/marked.esm.js +5 -5
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +5 -5
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +1 -1
- package/marked.min.js +2 -2
- package/package.json +6 -6
package/lib/marked.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked
|
|
2
|
+
* marked v12.0.0 - a markdown parser
|
|
3
3
|
* Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
|
|
4
4
|
* https://github.com/markedjs/marked
|
|
5
5
|
*/
|
|
@@ -935,9 +935,9 @@ const _tag = 'address|article|aside|base|basefont|blockquote|body|caption'
|
|
|
935
935
|
+ '|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption'
|
|
936
936
|
+ '|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe'
|
|
937
937
|
+ '|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option'
|
|
938
|
-
+ '|p|param|section|
|
|
939
|
-
+ '|track|ul';
|
|
940
|
-
const _comment = /<!--(
|
|
938
|
+
+ '|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title'
|
|
939
|
+
+ '|tr|track|ul';
|
|
940
|
+
const _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
|
|
941
941
|
const html = edit('^ {0,3}(?:' // optional indentation
|
|
942
942
|
+ '<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)' // (1)
|
|
943
943
|
+ '|comment[^\\n]*(\\n+|$)' // (2)
|
|
@@ -1052,7 +1052,7 @@ const inlineCode = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
|
|
|
1052
1052
|
const br = /^( {2,}|\\)\n(?!\s*$)/;
|
|
1053
1053
|
const inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
|
|
1054
1054
|
// list of unicode punctuation marks, plus any missing characters from CommonMark spec
|
|
1055
|
-
const _punctuation = '\\p{P}
|
|
1055
|
+
const _punctuation = '\\p{P}\\p{S}';
|
|
1056
1056
|
const punctuation = edit(/^((?![*_])[\spunctuation])/, 'u')
|
|
1057
1057
|
.replace(/punctuation/g, _punctuation).getRegex();
|
|
1058
1058
|
// sequences em should skip over [title](link), `code`, <html>
|