marked 11.1.0 → 11.2.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/bin/main.js +4 -4
- package/lib/marked.cjs +7 -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 +7 -5
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +7 -5
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +1 -1
- package/marked.min.js +3 -3
- package/package.json +15 -15
package/lib/marked.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.
|
|
1
|
+
// Generated by dts-bundle-generator v9.2.4
|
|
2
2
|
|
|
3
3
|
export type Token = (Tokens.Space | Tokens.Code | Tokens.Heading | Tokens.Table | Tokens.Hr | Tokens.Blockquote | Tokens.List | Tokens.ListItem | Tokens.Paragraph | Tokens.HTML | Tokens.Text | Tokens.Def | Tokens.Escape | Tokens.Tag | Tokens.Image | Tokens.Link | Tokens.Strong | Tokens.Em | Tokens.Codespan | Tokens.Br | Tokens.Del | Tokens.Generic);
|
|
4
4
|
export declare namespace Tokens {
|
package/lib/marked.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.
|
|
1
|
+
// Generated by dts-bundle-generator v9.2.4
|
|
2
2
|
|
|
3
3
|
export type Token = (Tokens.Space | Tokens.Code | Tokens.Heading | Tokens.Table | Tokens.Hr | Tokens.Blockquote | Tokens.List | Tokens.ListItem | Tokens.Paragraph | Tokens.HTML | Tokens.Text | Tokens.Def | Tokens.Escape | Tokens.Tag | Tokens.Image | Tokens.Link | Tokens.Strong | Tokens.Em | Tokens.Codespan | Tokens.Br | Tokens.Del | Tokens.Generic);
|
|
4
4
|
export declare namespace Tokens {
|
package/lib/marked.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked v11.
|
|
3
|
-
* Copyright (c) 2011-
|
|
2
|
+
* marked v11.2.0 - a markdown parser
|
|
3
|
+
* Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)
|
|
4
4
|
* https://github.com/markedjs/marked
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -1260,10 +1260,11 @@ class _Lexer {
|
|
|
1260
1260
|
src = src
|
|
1261
1261
|
.replace(/\r\n|\r/g, '\n');
|
|
1262
1262
|
this.blockTokens(src, this.tokens);
|
|
1263
|
-
let
|
|
1264
|
-
|
|
1263
|
+
for (let i = 0; i < this.inlineQueue.length; i++) {
|
|
1264
|
+
const next = this.inlineQueue[i];
|
|
1265
1265
|
this.inlineTokens(next.src, next.tokens);
|
|
1266
1266
|
}
|
|
1267
|
+
this.inlineQueue = [];
|
|
1267
1268
|
return this.tokens;
|
|
1268
1269
|
}
|
|
1269
1270
|
blockTokens(src, tokens = []) {
|
|
@@ -2088,7 +2089,8 @@ class Marked {
|
|
|
2088
2089
|
const genericToken = token;
|
|
2089
2090
|
if (this.defaults.extensions?.childTokens?.[genericToken.type]) {
|
|
2090
2091
|
this.defaults.extensions.childTokens[genericToken.type].forEach((childTokens) => {
|
|
2091
|
-
|
|
2092
|
+
const tokens = genericToken[childTokens].flat(Infinity);
|
|
2093
|
+
values = values.concat(this.walkTokens(tokens, callback));
|
|
2092
2094
|
});
|
|
2093
2095
|
}
|
|
2094
2096
|
else if (genericToken.tokens) {
|