Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/markitdown/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies = [
[project.optional-dependencies]
all = [
"python-pptx",
"mammoth",
"mammoth~=1.10.0",
"pandas",
"openpyxl",
"xlrd",
Expand Down
2 changes: 1 addition & 1 deletion packages/markitdown/src/markitdown/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Adam Fourney <adamfo@microsoft.com>
#
# SPDX-License-Identifier: MIT
__version__ = "0.1.2"
__version__ = "0.1.3"
10 changes: 10 additions & 0 deletions packages/markitdown/src/markitdown/converters/_docx_converter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import sys
import io
from warnings import warn

from typing import BinaryIO, Any

Expand All @@ -13,6 +15,14 @@
_dependency_exc_info = None
try:
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_open

except ImportError:
# Preserve the error and stack trace for later
_dependency_exc_info = sys.exc_info()
Expand Down