Merge branch 'main' into main

This commit is contained in:
afourney 2025-02-27 23:16:28 -08:00 committed by GitHub
commit 4c17039a1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View file

@ -27,7 +27,7 @@ dependencies = [
"beautifulsoup4", "beautifulsoup4",
"requests", "requests",
"mammoth", "mammoth",
"markdownify", "markdownify~=0.14.1",
"numpy", "numpy",
"python-pptx", "python-pptx",
"pandas", "pandas",

View file

@ -312,6 +312,7 @@ class MarkItDown:
def _convert( def _convert(
self, local_path: str, extensions: List[Union[str, None]], **kwargs self, local_path: str, extensions: List[Union[str, None]], **kwargs
) -> DocumentConverterResult: ) -> DocumentConverterResult:
res: Union[None, DocumentConverterResult] = None
error_trace = "" error_trace = ""
# Create a copy of the page_converters list, sorted by priority. # Create a copy of the page_converters list, sorted by priority.

View file

@ -1,6 +1,8 @@
from typing import Union from typing import Union
from ._base import DocumentConverter, DocumentConverterResult from ._base import DocumentConverter, DocumentConverterResult
from ._media_converter import MediaConverter from ._media_converter import MediaConverter
import base64
import mimetypes
class ImageConverter(MediaConverter): class ImageConverter(MediaConverter):