question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

H1 heading in default template

See original GitHub issue

Current Behavior

We are using the latest Lerna 5.5 version, which generates a CHANGELOG.md based on conventional commits. But the generated CHANGELOG.md contains multiple H1 headings. I first raised the issue in Lerna, but they sent me here.

Lerna is using conventional-changelog-core internally.

Heading was already fixed in conventional-changelog:

But it looks like the default template is still using H1: https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/templates/header.hbs

Expected Behavior

  • Features get H2
  • Patches get H3 (or even H2 too)

Thanks!

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

3reactions
kleinfreundcommented, Nov 2, 2022

Agreed. This is bugging me as well. Additionally it would be nice if there would always be an h1 at the start of the changelog file (e.g. # Changelog).

I just want to point out that the headings for versions should always be level 2 headings like so:

# Changelog

## 4.1.1

### Bug fixes

## 4.1.0

### Features

Headings for versions should not change in level depending on what kind of release it is because that leads to a broken outline. The following doesn’t make sense – the level 3 heading “4.1.1” structurally follows the level 1 heading “Changelog” so it skips a level without cause.

# Changelog

### 4.1.1

### Bug fixes

## 4.1.0

### Features

It’s perhaps easier to visualize a document outline as a nested list (a table of contents if you will):

  • Changelog
    • 4.1.1
      • Bug fixes
    • 4.1.0
      • Features

Note how this structure makes it impossible to make 4.1.1 a third-level list because there isn’t a second-level list it could belong to.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Formatting HTML H1 heading tags with CSS for SEO
H1 - H6 tags, also called "heading" tags are HTML code that's used for heading titles on pages. Some search engines give more...
Read more >
WordPress Heading Tags: H1, H2 - How and Why to Use Them
I understand that H1 is by default the Heading tag/ title of the webpage/blog-post. The typography one can determine in Appearance > customize...
Read more >
<h1>–<h6>: The HTML Section Heading elements
The to HTML elements represent six levels of section headings. is the highest section level and is the lowest.
Read more >
Designing Headings - WordPress Codex
By default, the H1 heading sits inside the header, commonly known as the masthead, of your web page theme. It often features the...
Read more >
What is an H1 Tag? SEO Best Practices - Ahrefs
The H1 tag is an HTML heading that's most commonly used to mark up a web page title.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found