markitdown icon indicating copy to clipboard operation
markitdown copied to clipboard

Feature/eml support

Open yousrae2004 opened this issue 6 months ago • 0 comments

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:

  1. Email with no body: Handles headers gracefully without crashing.

  2. HTML-only body: Verified the text/html fallback logic triggers correctly when text/plain is missing.

  3. No attachments: Confirmed the "Attachments" markdown section is excluded.

  4. No subject: Verified the output skips the Subject line entirely.

All eml-specific tests in _test_vectors.py are passing successfully locally.

yousrae2004 avatar May 30 '26 01:05 yousrae2004