From a0a31ec1c8f91563d2ee3b3ac704ff3c4ce49142 Mon Sep 17 00:00:00 2001 From: Kyle King Date: Sat, 18 Oct 2025 21:59:58 -0600 Subject: [PATCH 1/2] build: replace mdformat-tables with -gfm --- README.md | 1 - pyproject.toml | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index 6de8ba6..76bcebc 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,6 @@ Add this package wherever you use `mdformat` and the plugin will be auto-recogni - [mdformat-footnote](https://pypi.org/project/mdformat-footnote) - [mdformat-frontmatter](https://pypi.org/project/mdformat-frontmatter) - [mdformat-simple-breaks](https://pypi.org/project/mdformat-simple-breaks) -- [mdformat-tables](https://pypi.org/project/mdformat-tables) - [mdformat-web](https://pypi.org/project/mdformat-web) - [mdformat-wikilink](https://github.com/tmr232/mdformat-wikilink) diff --git a/pyproject.toml b/pyproject.toml index 0259429..10cc320 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,6 @@ recommended = [ "mdformat-frontmatter >= 2.0.8", "mdformat-ruff >= 0.1.3", "mdformat-simple-breaks >= 0.0.1", - "mdformat-tables >= 1.0.0", "mdformat-web >= 0.2.0", "mdformat-wikilink >= 0.2.0", # Patches https://github.com/lovesegfault/beautysh/issues/248 for Python 3.12 From dab0ee8ba32ac4519543efd09d09f311da7ad52c Mon Sep 17 00:00:00 2001 From: Kyle King Date: Sun, 26 Oct 2025 10:07:10 -0400 Subject: [PATCH 2/2] build: keep -tables if Py<3.10 (and therefore mdformat<1) Adapted from my solution for: https://github.com/executablebooks/mdformat-myst/pull/44/files --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 10cc320..787ef7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,8 +34,10 @@ recommended = [ "mdformat-config >= 0.2.1", "mdformat-footnote >= 0.1.1", "mdformat-frontmatter >= 2.0.8", + "mdformat-gfm >=1.0.0; python_version >= '3.10'", "mdformat-ruff >= 0.1.3", "mdformat-simple-breaks >= 0.0.1", + "mdformat-tables >=0.4.0; python_version < '3.10'", "mdformat-web >= 0.2.0", "mdformat-wikilink >= 0.2.0", # Patches https://github.com/lovesegfault/beautysh/issues/248 for Python 3.12