markitdown
markitdown copied to clipboard
Feature/eml support
Closes #89 I'm added to the work started by @0xRaduan in #271 and updated in #1503 into this PR to get the EML support issue #89 completed.
Using the original _eml_converter.py logic from #1503 I made some tweaks, updated the README with the supported format, and implemented comprehensive tests for the recommended edge cases:
-
Email with no body: Handles headers gracefully without crashing.
-
HTML-only body: Verified the text/html fallback logic triggers correctly when text/plain is missing.
-
No attachments: Confirmed the "Attachments" markdown section is excluded.
-
No subject: Verified the output skips the Subject line entirely.
All eml-specific tests in _test_vectors.py are passing successfully locally.