Skip to content

Change Request: Add JSON Frontmatter Support #404

@Pixel998

Description

@Pixel998

Environment

ESLint version:
@eslint/markdown version:
Node version:
npm version:
Operating System:

What problem do you want to solve?

The Markdown plugin currently only supports YAML and TOML frontmatter formats. However, many popular static site generators and documentation tools already support JSON frontmatter, including Hugo, VitePress, 11ty and possibly others. I think adding JSON frontmatter support would improve compatibility with these widely-used tools.

What do you think is the correct solution?

Modify the frontmatter handling in markdown-language.js to support JSON format

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions