marked 8.0.0 → 9.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 +7 -7
- package/lib/marked.cjs.map +1 -1
- package/lib/marked.esm.js +7 -7
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +7 -7
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +97 -69
- package/man/marked.1.md +89 -0
- package/marked.min.js +1 -14
- package/package.json +14 -13
- package/man/marked.1.txt +0 -73
package/lib/marked.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked
|
|
2
|
+
* marked v9.0.0 - a markdown parser
|
|
3
3
|
* Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
|
|
4
4
|
* https://github.com/markedjs/marked
|
|
5
5
|
*/
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
let indent = 0;
|
|
381
381
|
if (this.options.pedantic) {
|
|
382
382
|
indent = 2;
|
|
383
|
-
itemContents = line.
|
|
383
|
+
itemContents = line.trimStart();
|
|
384
384
|
}
|
|
385
385
|
else {
|
|
386
386
|
indent = cap[2].search(/[^ ]/); // Find first non-space char
|
|
@@ -485,9 +485,9 @@
|
|
|
485
485
|
list.raw += raw;
|
|
486
486
|
}
|
|
487
487
|
// Do not consume newlines at end of final item. Alternatively, make itemRegex *start* with any newlines to simplify/speed up endsWithBlankLine logic
|
|
488
|
-
list.items[list.items.length - 1].raw = raw.
|
|
489
|
-
list.items[list.items.length - 1].text = itemContents.
|
|
490
|
-
list.raw = list.raw.
|
|
488
|
+
list.items[list.items.length - 1].raw = raw.trimEnd();
|
|
489
|
+
list.items[list.items.length - 1].text = itemContents.trimEnd();
|
|
490
|
+
list.raw = list.raw.trimEnd();
|
|
491
491
|
// Item child tokens handled here at end because we needed to have the final item to trim it first
|
|
492
492
|
for (let i = 0; i < list.items.length; i++) {
|
|
493
493
|
this.lexer.state.top = false;
|
|
@@ -1891,12 +1891,12 @@
|
|
|
1891
1891
|
else {
|
|
1892
1892
|
item.tokens.unshift({
|
|
1893
1893
|
type: 'text',
|
|
1894
|
-
text: checkbox
|
|
1894
|
+
text: checkbox + ' '
|
|
1895
1895
|
});
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
1898
|
else {
|
|
1899
|
-
itemBody += checkbox;
|
|
1899
|
+
itemBody += checkbox + ' ';
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
1902
|
itemBody += this.parse(item.tokens, loose);
|