mdformat-front-matters
An mdformat plugin to format YAML, TOML, or JSON front matter
Decision gist · record as of 2026-08-14
Yes, if you use mdformat and need to normalize front matter in Markdown files. Install friction is low, dependencies are stable, and the plugin is actively maintained. No known vulnerabilities. MIT license is permissive. The only caveat is that the repository is small and young (first release October 2025), so community adoption and long-term support are not yet proven.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- mdformat must be installed separately or alongside this plugin.
- Low friction install as a pure Python wheel.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2025-12-04 (253 days) · last repo commit 2026-08-01 · 8 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 96,480 downloads/mo, #13,208 on PyPI
Alternatives
Verify before relying
pip install mdformat mdformat-front-matters
mdformat document.md
# Or with key sorting:
mdformat document.md --sort-front-matter- Whether the plugin correctly handles edge cases like malformed front matter in non-strict mode across all three formats.
- Performance characteristics when processing large documents or many files with complex nested front matter structures.
What it is and what it does
mdformat-front-matters is a plugin that extends mdformat to recognize and normalize front matter (metadata blocks) in Markdown files. It handles three formats: YAML (delimited by `---`), TOML (delimited by `+++`), and JSON (block syntax). The plugin preserves the original key order by default but can sort keys alphabetically with a flag, and it includes a strict mode that fails on invalid front matter rather than silently preserving it.
The package is designed to work zero-configuration once installed alongside mdformat—it auto-registers as a plugin. It depends on mdformat as its host, mdit-py-plugins for Markdown parsing integration, ruamel-yaml for YAML handling, and toml for TOML support. It's intended for developers managing Markdown documents with metadata, particularly in static site generators, documentation systems, or content pipelines where consistent front matter formatting matters.
Use it for
- Enforce consistent front matter formatting across a documentation site or blog built with a static site generator.
- Validate and normalize YAML front matter in Jekyll, Hugo, or similar Markdown-based projects via pre-commit hooks.
- Sort front matter keys alphabetically in CI/CD pipelines to reduce merge conflicts in version control.
- Fail builds when front matter is malformed using strict mode in automated documentation workflows.
- Normalize mixed YAML/TOML/JSON front matter in heterogeneous Markdown repositories to a single standard format.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use mdformat and need to normalize front matter in Markdown files.
Install friction is low, dependencies are stable, and the plugin is actively maintained. No known vulnerabilities. MIT license is permissive. The only caveat is that the repository is small and young (first release October 2025), so community adoption and long-term support are not yet proven.
Install
mdformat-front-matters on PyPI
Before you install
Low friction install as a pure Python wheel. Active maintenance with recent release (2025-12-04), though repository is small (8 stars). Depends on mdformat and parsing libraries (mdit-py-plugins, ruamel-yaml, toml) that are stable, widely-used packages.
Requires Python 3.10 or later. mdformat must be installed separately or alongside this plugin.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install mdformat mdformat-front-matters
mdformat document.md
# Or with key sorting:
mdformat document.md --sort-front-matter
Verify before relying
- Whether the plugin correctly handles edge cases like malformed front matter in non-strict mode across all three formats.
- Performance characteristics when processing large documents or many files with complex nested front matter structures.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesmdformatmdit-py-pluginsruamel-yamltoml |
| Maintenance | Actively maintained 253 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 96,480 / month, #13,208 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules |
Evidence: mdformat_front_matters-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “markdown front matter formatter”
- mdformat-front-mattersA plugin for mdformat that normalizes YAML, TOML, and JSON front…
- mdformat-frontmattermdformat-frontmatter is an mdformat plugin that preserves YAML front…
- mdformat_mystmdformat-myst is an mdformat plugin that extends Markdown formatting…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also mdformat-frontmatter · python-frontmatter · mdformat_myst · mdformat-mkdocs · mdformat · mdformat_deflist · mdformat-gfm-alerts · mdformat-ruff · mdformat-footnote · mdformat-black