{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"}],"enrichment":{"capability":"mdformat-frontmatter is an mdformat plugin that preserves YAML front matter blocks at the start of markdown files, preventing them from being reformatted or removed during markdown formatting operations.","skillfed_tags":["markdown-formatting","static-site-generation","jekyll"],"use_cases":["Format markdown files for Jekyll or other static site generators that rely on YAML front matter for configuration and metadata.","Integrate mdformat into a documentation build pipeline without losing front matter headers during formatting passes.","Ensure consistent markdown style across a project while preserving metadata used by automation tools.","Enforce markdown formatting standards in a monorepo where some files use YAML front matter for site generation.","Combine with pre-commit hooks to automatically format markdown while respecting front matter structure."],"what_it_does":"mdformat-frontmatter extends the mdformat markdown formatter to recognize and preserve YAML front matter blocks\u2014the metadata headers used by static site generators like Jekyll. When mdformat processes a markdown file, this plugin ensures that properly formed YAML blocks at the beginning of the file are left intact rather than being reformatted or stripped. The plugin works by integrating with mdformat's plugin system and depends on ruamel-yaml for YAML parsing and mdit-py-plugins for markdown-it integration.\n\nThe plugin is straightforward in scope: it validates that YAML front matter appears only at the file's start (first one or two lines) and allows well-formed blocks to pass through unchanged. The maintainers note that the plugin is not sophisticated about handling malformed YAML\u2014incorrectly structured blocks may produce unexpected behavior\u2014so it works best when front matter is already valid.","worth_installing":"Yes, if you use mdformat with markdown files that contain YAML front matter. The plugin is actively maintained, has no security vulnerabilities, and solves a specific but real problem for Jekyll users and documentation projects. Install it only if you need front matter preservation; it adds no value for plain markdown files."},"id":"mdformat-frontmatter","links":{"html":"https://skillfed.io/packages/mdformat-frontmatter","md":"https://skillfed.io/packages/mdformat-frontmatter.md","pypi":"https://pypi.org/project/mdformat-frontmatter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-23","license_spdx":"MIT","license_treatment":"permissive","name":"mdformat-frontmatter","python_support":"supports_current","summary":"An mdformat plugin for parsing / ignoring frontmatter."},"popularity":{"monthly_downloads":1188261,"position":4245,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.1.2"}
