Skip to content

Commit 3d4fe3c

Browse files
authored
Upgrade mammoth to 1.11.0 (#1452)
1 parent 447c047 commit 3d4fe3c

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

packages/markitdown/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
[project.optional-dependencies]
3737
all = [
3838
"python-pptx",
39-
"mammoth~=1.10.0",
39+
"mammoth~=1.11.0",
4040
"pandas",
4141
"openpyxl",
4242
"xlrd",
@@ -50,7 +50,7 @@ all = [
5050
"azure-identity"
5151
]
5252
pptx = ["python-pptx"]
53-
docx = ["mammoth~=1.10.0", "lxml"]
53+
docx = ["mammoth~=1.11.0", "lxml"]
5454
xlsx = ["pandas", "openpyxl"]
5555
xls = ["pandas", "xlrd"]
5656
pdf = ["pdfminer.six"]

packages/markitdown/src/markitdown/converters/_docx_converter.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
_dependency_exc_info = None
1616
try:
1717
import mammoth
18-
import mammoth.docx.files
19-
20-
def mammoth_files_open(self, uri):
21-
warn("DOCX: processing of r:link resources (e.g., linked images) is disabled.")
22-
return io.BytesIO(b"")
23-
24-
mammoth.docx.files.Files.open = mammoth_files_open
2518

2619
except ImportError:
2720
# Preserve the error and stack trace for later

0 commit comments

Comments
 (0)