Skip to content

Python tool for converting files and office documents to Markdown.

Bump Mammoth dependency to >=1.12.2,<2 (#2729)

Adam Fourneyc907c4cd9da1
diff --git a/packages/markitdown-ocr/pyproject.toml b/packages/markitdown-ocr/pyproject.toml
index b482c5fd..ff38d735 100644
--- a/packages/markitdown-ocr/pyproject.toml
+++ b/packages/markitdown-ocr/pyproject.toml
@@ -29,7 +29,7 @@ dependencies = [
"pdfminer.six>=20251230",
"pdfplumber>=0.11.9",
"PyMuPDF>=1.24.0,<2",
- "mammoth~=1.11.0",
+ "mammoth>=1.12.2,<2",
"python-docx",
"python-pptx",
"pandas",
diff --git a/packages/markitdown/pyproject.toml b/packages/markitdown/pyproject.toml
index 3bc08031..b21b1577 100644
--- a/packages/markitdown/pyproject.toml
+++ b/packages/markitdown/pyproject.toml
@@ -36,7 +36,7 @@ dependencies = [
[project.optional-dependencies]
all = [
"python-pptx",
- "mammoth~=1.11.0",
+ "mammoth>=1.12.2,<2",
"pandas",
"openpyxl",
"xlrd",
@@ -52,7 +52,7 @@ all = [
"azure-identity",
]
pptx = ["python-pptx"]
-docx = ["mammoth~=1.11.0", "lxml"]
+docx = ["mammoth>=1.12.2,<2", "lxml"]
xlsx = ["pandas", "openpyxl"]
xls = ["pandas", "xlrd"]
pdf = ["pdfminer.six>=20251230", "pdfplumber>=0.11.9"]