Merge branch 'main' into main
This commit is contained in:
commit
4c17039a1c
3 changed files with 4 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ dependencies = [
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
"requests",
|
"requests",
|
||||||
"mammoth",
|
"mammoth",
|
||||||
"markdownify",
|
"markdownify~=0.14.1",
|
||||||
"numpy",
|
"numpy",
|
||||||
"python-pptx",
|
"python-pptx",
|
||||||
"pandas",
|
"pandas",
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue