Python tool for converting files and office documents to Markdown.
For csv files mimetypes.guess_type is returning "application/vnd.ms-excel" on windows causing an invalid mime type in plaintextconverter. In reference to issue: https://github.com/microsoft/markitdown/issues/150 (#273)
wunde00573ba69d8cd44
diff --git a/src/markitdown/_markitdown.py b/src/markitdown/_markitdown.pyindex 9f610f6f..e68b099b 100644--- a/src/markitdown/_markitdown.py+++ b/src/markitdown/_markitdown.py@@ -46,6 +46,9 @@ from azure.identity import DefaultAzureCredential# This constant is a temporary fix until the bug is resolved.CONTENT_FORMAT = "markdown"+# Override mimetype for csv to fix issue on windows+mimetypes.add_type("text/csv", ".csv")+# Optional Transcription supportIS_AUDIO_TRANSCRIPTION_CAPABLE = Falsetry: