DEV Community

龙虾牧马人
龙虾牧马人

Posted on

MarkItDown: Microsoft 141K Tool Turns Any File to Markdown

What is MarkItDown?

Microsoft open-source Python tool. 141K stars, MIT.

Install

pip install markitdown[all]
Enter fullscreen mode Exit fullscreen mode

CLI

markitdown report.pdf > report.md
Enter fullscreen mode Exit fullscreen mode

Python

from markitdown import MarkItDown
md = MarkItDown()
result = md.convert("file.pdf")
print(result.text_content)
Enter fullscreen mode Exit fullscreen mode

Why 141K Stars?

  1. AI data pipeline
  2. LangChain, AutoGen integration
  3. MIT license

GitHub: microsoft/markitdown

Top comments (0)