$npx skillfedfor your agent

mdformat-front-matters

An mdformat plugin to format YAML, TOML, or JSON front matter

With conditionsPyPI Python ModulesReleased Dec 202596.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mdformat_front_matters-2.0.0-py3-none-any.whl
v2.0.0 · released 2025-12-04 · Python >=3.10.0 · 4 runtime deps: mdformat, mdit-py-plugins, ruamel-yaml, toml

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseMIT permissive
Python supportSupports the current Python release >=3.10.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
mdformatmdit-py-pluginsruamel-yamltoml
MaintenanceActively maintained 253 days since the last release
Last repo commit
First released
Downloads96,480 / month, #13,208 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
markdown front matter formattermdformat plugin yaml toml jsonnormalize markdown metadatafront matter normalizationmarkdown front matter pluginyaml front matter formattermdformat extension
Topics
markdown-toolingstatic-site-generators
PyPI keywords
markdownmarkdown-itmdformatmdformat_plugin_template

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also mdformat-frontmatter · python-frontmatter · mdformat_myst · mdformat-mkdocs · mdformat · mdformat_deflist · mdformat-gfm-alerts · mdformat-ruff · mdformat-footnote · mdformat-black