conventional-changelog/standard-version

Headings generate the same IDs

Open

#214 opened on Nov 9, 2017

View on GitHub
 (4 comments) (0 reactions) (0 assignees)JavaScript (7,442 stars) (825 forks)batch import
enhancementhelp wantedtriaged

Description

The auto generated headings (i.e. features, Bugfixes, etc) produce the same IDs in the final output (each H1, H2, H3, etc)., This could be corrected by including the version number along side the heading. (heading IDs are auto-generated by lower-casing the heading title, replacing non alpha-numerics with -. i.e. not appending the version number makes all the Features heading have the same ID assigned to them)

Also, headings should be generated at the appropriate semantic levels (i.e. only one #, and not skipping intermediate levels):

# Change Log

## v1.1.0
...
### Bugfixes v1.1.0
...
### Features v1.1.0
...
## v1.0.0
...
### Bugfixes v1.0.0
...
### Features v1.0.0
...

Using <a name="..."> anchor tags is no longer needed in HTML5 (as the heading ID provides the same functionality).

Contributor guide