8000 🗜️ build [skip ci] · markedjs/marked@a8bd390 · GitHub
[go: up one dir, main page]

< 8000 a href="#start-of-content" data-skip-target-assigned="false" class="px-2 py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content

Commit a8bd390

Browse files
author
MarkedJS bot
committed
🗜️ build [skip ci]
1 parent f1a9608 commit a8bd390

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

lib/marked.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,10 +1747,15 @@ var Lexer = /*#__PURE__*/function () {
17471747
};
17481748

17491749
_proto.inline = function inline(src, tokens) {
1750+
if (tokens === void 0) {
1751+
tokens = [];
1752+
}
1753+
17501754
this.inlineQueue.push({
17511755
src: src,
17521756
tokens: tokens
17531757
});
1758+
return tokens;
17541759
}
17551760
/**
17561761
* Lexing/Compiling

lib/marked.esm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,8 +1704,9 @@ class Lexer {
17041704
return tokens;
17051705
}
17061706

1707-
inline(src, tokens) {
1707+
inline(src, tokens = []) {
17081708
this.inlineQueue.push({ src, tokens });
1709+
return tokens;
17091710
}
17101711

17111712
/**

lib/marked.umd.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,10 +1749,15 @@
17491749
};
17501750

17511751
_proto.inline = function inline(src, tokens) {
1752+
if (tokens === void 0) {
1753+
tokens = [];
1754+
}
1755+
17521756
this.inlineQueue.push({
17531757
src: src,
17541758
tokens: tokens
17551759
});
1760+
return tokens;
17561761
}
17571762
/**
17581763
* Lexing/Compiling

marked.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0