notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details
py-mdformat CommonMark compliant Markdown formatter
0.7.22_2 textproc on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.7.22Version of this port present on the latest quarterly branch.
Maintainer: nivit@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-11-16 14:06:04
Last Update: 2025-09-10 04:38:12
Commit Hash: 63dc1b6
People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py311-PyOpenGL, p5-Sane
Also Listed In: python
License: MIT
WWW:
https://github.com/hukkin/mdformat
Description:
Mdformat is an opinionated Markdown formatter that can be used to enforce a consistent style in Markdown files. Mdformat is a Unix-style command-line tool as well as a Python library.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}mdformat>0:textproc/py-mdformat@${PY_FLAVOR}
To install the port:
cd /usr/ports/textproc/py-mdformat/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/py-mdformat
  • pkg install py311-mdformat
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-mdformat listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-mdformat
Package flavors (<flavor>: <package>)
  • py311: py311-mdformat
distinfo:
TIMESTAMP = 1739874344 SHA256 (executablebooks-mdformat-0.7.22_GH0.tar.gz) = b793e355e00a61f8c0e7e3a642f7430b858c073cf86c7371d20fe6ce79f3e4d3 SIZE (executablebooks-mdformat-0.7.22_GH0.tar.gz) = 94092

Packages (timestamps in pop-ups are UTC):
py39-mdformat
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest--------
FreeBSD:14:quarterly-----0.7.170.7.170.7.17
FreeBSD:15:latest--n/a-n/an/a0.7.170.7.17
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 

py311-mdformat
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.7.22_20.7.22_2-0.7.22_20.7.22_2n/an/an/a
FreeBSD:13:quarterly0.7.22_20.7.22_2-0.7.220.7.22_2n/an/an/a
FreeBSD:14:latest0.7.22_20.7.22_2-0.7.220.7.22_2---
FreeBSD:14:quarterly0.7.22_20.7.22_2-0.7.220.7.22_2---
FreeBSD:15:latest0.7.22_20.7.22_2n/a0.7.22n/an/a--
FreeBSD:15:quarterly0.7.22_20.7.22_2n/a-n/an/a--
FreeBSD:16:latest-0.7.22_2n/a-n/an/a--
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>=61.0.0 : devel/py-setuptools@py311
  2. py311-wheel>=0.41.3 : devel/py-wheel@py311
  3. py311-docutils>=0.18.1 : textproc/py-docutils@py311
  4. py311-furo>=2022.6.21 : textproc/py-furo@py311
  5. py311-myst-parser>=0.18.0 : textproc/py-myst-parser@py311
  6. py311-sphinx>=5.4.0 : textproc/py-sphinx@py311
  7. python3.11 : lang/python311
  8. py311-build>=0 : devel/py-build@py311
  9. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. py311-covdefaults>=2.3.0_1 : devel/py-covdefaults@py311
  2. py311-pytest-cov>=4.1.0 : devel/py-pytest-cov@py311
  3. py311-pytest-randomly>=3.12.0 : devel/py-pytest-randomly@py311
  4. py311-pytest>=7,1 : devel/py-pytest@py311
  5. python3.11 : lang/python311
Runtime dependencies:
  1. py311-importlib-metadata>=3.6.0 : devel/py-importlib-metadata@py311
  2. py311-markdown-it-py>=1<5 : textproc/py-markdown-it-py@py311
  3. py311-mdurl>=0.1.2 : textproc/py-mdurl@py311
  4. py311-zipp>=0.5 : devel/py-zipp@py311
  5. python3.11 : lang/python311
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for py311-mdformat-0.7.22_2: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings
Options name:
textproc_py-mdformat
USES:
python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/executablebooks/mdformat/tar.gz/0.7.22?dummy=/
Collapse this list.

Number of commits found: 5

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.7.22_2
10 Sep 2025 04:38:12
commit hash: 63dc1b6e743730ec96ef4a886e5545ce7e45de34commit hash: 63dc1b6e743730ec96ef4a886e5545ce7e45de34commit hash: 63dc1b6e743730ec96ef4a886e5545ce7e45de34commit hash: 63dc1b6e743730ec96ef4a886e5545ce7e45de34 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
textproc/py-mdformat: Fix RUN_DEPENDS

- Use PY_TOMLI
- While I'm here, update WWW
- Bump PORTREVISION for dependency change

from pyproject.toml:
    'tomli >=1.1.0; python_version < "3.11"',

Reference:	https://github.com/hukkin/mdformat/blob/0.7.22/pyproject.toml#L17
Approved by:	portmgr (blanket)
With hat:	python
0.7.22_1
07 Sep 2025 23:07:36
commit hash: 59590a9fcf6c82557b3700adf944529e70b2d111commit hash: 59590a9fcf6c82557b3700adf944529e70b2d111commit hash: 59590a9fcf6c82557b3700adf944529e70b2d111commit hash: 59590a9fcf6c82557b3700adf944529e70b2d111 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
textproc/py-mdformat: Allow build with py-markdown-it-py 4.0.0+

- Bump PORTREVISION for package change

Obtained
from:	https://github.com/hukkin/mdformat/commit/a822aca00e5b918953597499e67c8bb7767c7960
0.7.22
22 Feb 2025 09:54:57
commit hash: 95d01e2eb0b09dc7587c5a0b6bca2bbf93f4ebdccommit hash: 95d01e2eb0b09dc7587c5a0b6bca2bbf93f4ebdccommit hash: 95d01e2eb0b09dc7587c5a0b6bca2bbf93f4ebdccommit hash: 95d01e2eb0b09dc7587c5a0b6bca2bbf93f4ebdc files touched by this commit
Nicola Vitale (nivit) search for other commits by this committer
textproc/py-mdformat: Update to 0.7.22

- Update list of test dependencies;
- Set the PYTHONPATH variable to find the mdformat module required
  by tests;
- Fix the minimum required version of setuptools in pyproject.toml
  (the Ports one is too old) via a post-patch target.

Reported by:	portscout!
0.7.18
17 Oct 2024 21:50:05
commit hash: 9b420fd9631e0fd21af083207cefbf7997b10ca8commit hash: 9b420fd9631e0fd21af083207cefbf7997b10ca8commit hash: 9b420fd9631e0fd21af083207cefbf7997b10ca8commit hash: 9b420fd9631e0fd21af083207cefbf7997b10ca8 files touched by this commit
Nicola Vitale (nivit) search for other commits by this committer
textproc/py-mdformat: Update to 0.7.18

Reported by:	portscout!
0.7.17
16 Nov 2023 14:02:41
commit hash: b28009e43f476bdd33d0d97bfa3bd56739c45ff4commit hash: b28009e43f476bdd33d0d97bfa3bd56739c45ff4commit hash: b28009e43f476bdd33d0d97bfa3bd56739c45ff4commit hash: b28009e43f476bdd33d0d97bfa3bd56739c45ff4 files touched by this commit
Nicola Vitale (nivit) search for other commits by this committer
textproc/py-mdformat: Add new port

Mdformat is an opinionated Markdown formatter that can be used
to enforce a consistent style in Markdown files. Mdformat is a
Unix-style command-line tool as well as a Python library.

https://github.com/executablebooks/mdformat

Number of commits found: 5