Python tool for converting files and office documents to Markdown.
Upgrade mammoth to 1.11.0 (#1452)
afourney3d4fe3cdcced
diff --git a/packages/markitdown/pyproject.toml b/packages/markitdown/pyproject.tomlindex 3056c1c1..8fe43ad6 100644--- a/packages/markitdown/pyproject.toml+++ b/packages/markitdown/pyproject.toml@@ -36,7 +36,7 @@ dependencies = [[project.optional-dependencies]all = ["python-pptx",- "mammoth~=1.10.0",+ "mammoth~=1.11.0","pandas","openpyxl","xlrd",@@ -50,7 +50,7 @@ all = ["azure-identity"]pptx = ["python-pptx"]-docx = ["mammoth~=1.10.0", "lxml"]+docx = ["mammoth~=1.11.0", "lxml"]xlsx = ["pandas", "openpyxl"]xls = ["pandas", "xlrd"]pdf = ["pdfminer.six"]diff --git a/packages/markitdown/src/markitdown/converters/_docx_converter.py b/packages/markitdown/src/markitdown/converters/_docx_converter.pyindex 9cb2cbd5..3975107b 100644--- a/packages/markitdown/src/markitdown/converters/_docx_converter.py+++ b/packages/markitdown/src/markitdown/converters/_docx_converter.py@@ -15,13 +15,6 @@ from .._exceptions import MissingDependencyException, MISSING_DEPENDENCY_MESSAGE_dependency_exc_info = Nonetry:import mammoth- import mammoth.docx.files-- def mammoth_files_open(self, uri):- warn("DOCX: processing of r:link resources (e.g., linked images) is disabled.")- return io.BytesIO(b"")-- mammoth.docx.files.Files.open = mammoth_files_openexcept ImportError:# Preserve the error and stack trace for later