marked 15.0.3 → 15.0.4
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 -1
- package/lib/marked.cjs.map +1 -1
- package/lib/marked.esm.js +5 -1
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +5 -1
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +1 -1
- package/marked.min.js +2 -2
- package/package.json +5 -5
package/lib/marked.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked v15.0.
|
|
2
|
+
* marked v15.0.4 - a markdown parser
|
|
3
3
|
* Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
|
|
4
4
|
* https://github.com/markedjs/marked
|
|
5
5
|
*/
|
|
@@ -891,6 +891,10 @@
|
|
|
891
891
|
lastItem.raw = lastItem.raw.trimEnd();
|
|
892
892
|
lastItem.text = lastItem.text.trimEnd();
|
|
893
893
|
}
|
|
894
|
+
else {
|
|
895
|
+
// not a list since there were no items
|
|
896
|
+
return;
|
|
897
|
+
}
|
|
894
898
|
list.raw = list.raw.trimEnd();
|
|
895
899
|
// Item child tokens handled here at end because we needed to have the final item to trim it first
|
|
896
900
|
for (let i = 0; i < list.items.length; i++) {
|