Skip to content

Commit c93c2c9

Browse files
committed
chore: update
1 parent 12215ac commit c93c2c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/info/releasenotes/display.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default class Display extends SfdxCommand {
9999
renderer: new TerminalRenderer({ emoji: false }),
100100
});
101101

102-
tokens.unshift(marked.lexer(`# Release notes for '${this.config.bin}':`)[0]);
102+
tokens.unshift(marked.lexer(`# Release notes for '${plugin.name}':`)[0]);
103103

104104
this.ux.log(marked.parser(tokens));
105105

src/shared/parseReleaseNotes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const parseReleaseNotes = (notes: string, version: string, baseUrl: string): mar
2222

2323
tokens = parsed.filter((token) => {
2424
// TODO: Could make header depth (2) a setting in oclif.info.releasenotes
25-
if (token.type === 'heading' && token.depth === 2) {
25+
if (token.type === 'heading' && token.depth <= 2) {
2626
const coercedVersion = semver.coerce(token.text).version;
2727

2828
// We will use this to find the closest patch if passed version is not found

0 commit comments

Comments
 (0)