Make sure extensions are unique in MarkItDown's convert methods. (#1076)
This commit is contained in:
@@ -381,7 +381,8 @@ class MarkItDown:
|
||||
ext = ext.strip()
|
||||
if ext == "":
|
||||
return
|
||||
# if ext not in extensions:
|
||||
if ext in extensions:
|
||||
return
|
||||
extensions.append(ext)
|
||||
|
||||
def _guess_ext_magic(self, path):
|
||||
|
||||
Reference in New Issue
Block a user