Skip to content

Titles are not handled properly anymore #4665

@Sotty75

Description

@Sotty75

🐛 Bug Report

The article titles are behaving differently than before and in not consistent ways.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. I have a site where an article has the following front-matter section:
---
id: azuread_setup
title: Azure AD Configuration Setup
hide_title: true
hide_table_of_contents: false
sidebar_label: Azure AD Configuration Setup
description: Azure AD Configuration Setup
keywords:
  - Application
  - Web Server
  - Requirements
---

followed by a header 1 title
# My Header

Expected behavior

I expect the front-matter Title to be hidden and the string My Header to be displayed as a title

Actual Behavior

My Header title is hidden as well.
Also if i have instead of # My Header a second level header immediately after the front-matter section, i see the ID displayed as a title.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions