Skip to content

contentHeading: false option is ignored (automatic title/description extraction persists) #3722

@TwoSquirrels

Description

@TwoSquirrels

Environment

  • Operating System: Linux 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0
  • Node Version: v20.19.1
  • Nuxt Version: 4.3.1
  • CLI Version: 3.33.1
  • Nitro Version: 2.13.1
  • Package Manager: npm@10.8.2
  • Builder: vite@7.3.1
  • User Config: compatibilityDate, content, devtools, modules
  • Runtime Modules: @nuxt/content@3.11.2
  • Build Modules: -

Version

v3.11.2

Reproduction

https://stackblitz.com/edit/nuxt-content-heading-bug?file=nuxt.config.ts

Description

The content.build.markdown.contentHeading: false option in nuxt.config.ts is ignored.

Even when explicitly set to false, the parser continues to automatically extract:

  • The first H1 heading as title
  • The first paragraph as description

This overrides any manual configuration intended to rely solely on Front Matter.

Steps to Reproduce

See the provided StackBlitz reproduction.

  1. nuxt.config.ts sets contentHeading: false.
  2. content/index.md has an H1 and a paragraph.
  3. queryCollection returns the extracted title and description from the body, ignoring the config.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions