Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jayree committed Jan 7, 2022
1 parent 12215ac commit c93c2c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/info/releasenotes/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class Display extends SfdxCommand {
renderer: new TerminalRenderer({ emoji: false }),
});

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/shared/parseReleaseNotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const parseReleaseNotes = (notes: string, version: string, baseUrl: string): mar

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

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

0 comments on commit c93c2c9

Please sign in to comment.