-
-
Notifications
You must be signed in to change notification settings - Fork 746
contentHeading: false option is ignored (automatic title/description extraction persists) #3722
Copy link
Copy link
Closed
Description
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.
nuxt.config.tssetscontentHeading: false.content/index.mdhas an H1 and a paragraph.queryCollectionreturns the extractedtitleanddescriptionfrom the body, ignoring the config.
Additional context
No response
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels