-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(writer): normalize release headings (#237)
Related issues: - conventional-changelog/conventional-changelog#214 (comment) - conventional-changelog/standard-version#208 BREAKING CHANGE: Logic for generating release headings has been changed to make all heading levels the same (`##`/`h2`) for better compatibility with screen readers and parsers, and to conform to HTML semantics. Patch release titles are now wrapped in a `<small>` tag to maintain the visual hierarchy of the previous style. Fixes conventional-changelog/conventional-changelog#214
- Loading branch information
Showing
4 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
packages/conventional-changelog-writer/templates/header.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<a name="{{version}}"></a> | ||
{{#if isPatch~}} | ||
## | ||
{{~else~}} | ||
# | ||
{{~/if}} {{version}} | ||
## {{#if isPatch~}} <small> | ||
{{~/if~}} {{version}} | ||
{{~#if title}} "{{title}}" | ||
{{~/if}} | ||
{{~/if~}} | ||
{{~#if date}} ({{date}}) | ||
{{~/if~}} | ||
{{~#if isPatch~}} </small> | ||
{{~/if}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters