Enhancement: Schema and validation for front matter in markdown files #763

Closed
opened 2026-10-05 03:04:21 +02:00 by adam · 0 comments
Owner

Is your feature request related to a problem? Please describe.
Currently, markdown files with YAML front matter can vary in structure and syntax, which may lead to inconsistencies and errors during processing.

Describe the solution you'd like

  • Make use of the content type definition, like it would be a JSON schema definition
  • Add automatic validation for the YAML section of markdown files to ensure they conform to the defined schema.

Describe alternatives you've considered

  • Manual validation through external tools.
  • Relying on user attention to syntax and structure without validation.

Additional context
This will help improve reliability, catch errors early, and ensure a consistent structure for all markdown documents using front matter in the project.

**Is your feature request related to a problem? Please describe.** Currently, markdown files with YAML front matter can vary in structure and syntax, which may lead to inconsistencies and errors during processing. **Describe the solution you'd like** - Make use of the content type definition, like it would be a JSON schema definition - Add automatic validation for the YAML section of markdown files to ensure they conform to the defined schema. **Describe alternatives you've considered** - Manual validation through external tools. - Relying on user attention to syntax and structure without validation. **Additional context** This will help improve reliability, catch errors early, and ensure a consistent structure for all markdown documents using front matter in the project. <!-- github-sync-id:3690580099 -->
adam closed this issue 2026-10-05 03:04:21 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#763