Skip to content

Commit

Permalink
For csv files mimetypes.guess_type is returning "application/vnd.ms-e…
Browse files Browse the repository at this point in the history
…xcel" on windows causing an invalid mime type in plaintextconverter. In reference to issue: #150
  • Loading branch information
wunde005 committed Jan 9, 2025
1 parent f58a864 commit d8422ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/markitdown/_markitdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
from bs4 import BeautifulSoup
from charset_normalizer import from_path

# Override mimetype for csv to fix issue on windows
mimetypes.add_type("text/csv", ".csv")

# Optional Transcription support
IS_AUDIO_TRANSCRIPTION_CAPABLE = False
try:
Expand Down

0 comments on commit d8422ea

Please sign in to comment.