An mdformat plugin for formatting YAML, TOML, or JSON front matter in Markdown files. Current version: 2.0.0. Release cadence is irregular; major version bumps when there are breaking changes in mdformat or plugin API.
pip install mdformat-front-mattersVerified import paths — ran on the pinned version, not inferred.
Importing the plugin automatically registers it with mdformat. Then use mdformat.text() or mdformat.file() as usual.
Upgrade Python to 3.10 or higher.
Update CLI or API calls to use `prefer_style` instead of `front_matter_style`.
Ensure `import mdformat_front_matters` is called before any mdformat formatting.
Explicitly list plugins in `mdformat` options or control plugin loading order via Python code.
Use `import mdformat_front_matters` without any submodule.
Use `prefer_style` instead of `front_matter_style` in mdformat options.
Ensure the file path is correct and the file exists.