Skip to content

Commit

Permalink
fix(style): revert <sup> style
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 2, 2022
1 parent 054ddb8 commit 742ae0b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ cli
.option('--capitalize', 'Should capitalize for each comment message')
.option('--emoji', 'Use emojis in section titles', { default: true })
.option('--group', 'Nest commit messages under their scopes')
.option('--sup', 'Use <sup> for author info', { default: true })
.option('--dry', 'Dry run')
.help()

Expand Down
4 changes: 2 additions & 2 deletions src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function formatLine(commit: Commit, options: ResolvedChangelogOptions) {

let refs = [authors, prRefs, hashRefs].filter(i => i?.trim()).join(' ')

if (options.sup && refs)
refs = `<sup>${refs}</sup>`
if (refs)
refs = `&nbsp;-&nbsp; ${refs}`

const description = options.capitalize ? capitalize(commit.description) : commit.description

Expand Down
5 changes: 0 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ export interface ChangelogOptions extends Partial<ChangelogenOptions> {
* @default true
*/
emoji?: boolean
/**
* Use <sup> for author info
* @default true
*/
sup?: boolean
}

export type ResolvedChangelogOptions = Required<ChangelogOptions>
Expand Down

0 comments on commit 742ae0b

Please sign in to comment.