Skip to main content

mdformat-frontmatter

Build Status codecov.io PyPI version OpenSSF Scorecard

An mdformat plugin for ensuring that yaml front-matter is respected. Many tools (such as jekyll) use yaml front matter for automation purposes. mdformat-frontmatter only supports yaml. For example:

---
test: yaml
---
# This looks okay
For some markdown code.

Frontmatter can only be at the first line or two of the code.

# This is not
---
test: yaml
---

Note: that at this stage this plugin is not that sophisticated. The principle objective is to allow properly formed yaml header blocks to pass through. Incorrectly formed blocks may result in strange behaviour.

Requirements

Python 3.10 or higher.

Development

This package was built from the template provided by executable books and customized (specifically to separate content PR's from the release cycle). This package uses hatch as the build engine, and tox for test automation.

To install development dependencies:

pip install -e ".[dev,test]"

To run the tests:

tox

and with test coverage:

tox -e py312-cov

The easiest way to write tests, is to edit tests/fixtures.md

To run the code formatting and style checks:

tox -e py312-pre-commit

or directly

pip install pre-commit
pre-commit run --all

To run the pre-commit hook test:

tox -e py312-hook

Release Process

Releases are fully automated using python-semantic-release and conventional commits:

  1. Merge PRs with conventional commit titles (e.g., fix:, feat:, chore:)
  2. The CI workflow automatically analyzes commits, determines version bump, updates CHANGELOG, creates a tag, and publishes to PyPI
  3. Artifacts are signed with Sigstore for supply chain security

The release workflow uses PyPI Trusted Publishing (OIDC) and generates attestations for all published packages.

Metadata

Release files for mdformat-frontmatter 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdformat-frontmatter 2.2.0
File Size Uploaded Provenance Actions
mdformat_frontmatter-2.2.0.tar.gz 9.4 kB With provenance Details for mdformat_frontmatter-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mdformat-frontmatter 2.2.0
File Interpreter ABI Platform Actions
mdformat_frontmatter-2.2.0-py3-none-any.whl Python 3 none any Details for mdformat_frontmatter-2.2.0-py3-none-any.whl

Total release size: 14.4 kB

Release files / mdformat_frontmatter-2.2.0.tar.gz

Download URL mdformat_frontmatter-2.2.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5559bfeb187354ab1dfba81fb85af3f9dda44fd38a893a842761564b9394bb6a
BLAKE2b-256 checksum
How to use checksums
8ddd6e5d98bd900213b7f619c9df97abc05e9cd16232e9f7aef94d8032203de9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / mdformat_frontmatter-2.2.0-py3-none-any.whl

Download URL mdformat_frontmatter-2.2.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ec539929a9ee4937a14c9f5483b3af4145003f68da9db94fb883ad341b04ce8
BLAKE2b-256 checksum
How to use checksums
40060c90c4ec435c5f179fdafc265689868893707f4c7cea3aa687c8f92ae6e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for mdformat-frontmatter 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mdformat_frontmatter-2.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page