markitdown-convert

Convert PDF and Office documents to Markdown using Microsoft MarkItDown.

6|1|Updated May 11, 2026
One-click install
npx skills add https://github.com/yakeworld/Synthos --skill markitdown-convert-yakeworld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: markitdown-convert
Source: https://github.com/yakeworld/Synthos/tree/main/skills/extended/external-automation/automation-skills/productivity/markitdown-convert
Command: npx skills add https://github.com/yakeworld/Synthos --skill markitdown-convert-yakeworld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires markitdown, and includes references (resource) components.

What problem does it solve? Research and documentation pipelines need reliable full-text versions of PDF and Office files for indexing, quality checks, and note-taking tools like NotebookLM and Obsidian, but raw PDFs are often unreliable to index and lack usable text layers. ## Core Features & Use Cases - Single and Batch Conversion: Convert PDF, DOCX, PPTX, and Excel files to Markdown with uvx markitdown, including a batch script with cache skipping and automatic pdftotext fallback. - Corrupted PDF Handling: Detect damaged or textless PDFs, write explicit placeholder files instead of silently skipping, and route to arXiv/PMC alternatives, manual summaries, or OCR via Tesseract/marker-pdf. - Main Paper Detection: Filter out reference, template, and graphical PDFs in mixed directories so only the primary paper is converted. - Use Case: After downloading 40 reference PDFs into pdfs/, run the batch script to produce Markdown files in pdfs_md/ for NotebookLM indexing, with failures automatically falling back to pdftotext or placeholders. ## Quick Start Convert the PDF at 06-ref/pdfs/Smith1988.pdf to Markdown in the pdfs_md directory using markitdown, falling back to pdftotext if the output is too short.

Frequently Asked Questions about markitdown-convert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a PDF to Markdown with MarkItDown?

Run `uvx markitdown input.pdf > output.md` after installing with `uv tool install markitdown --with markitdown[pdf]`. The pdf extra is required, otherwise a MissingDependencyException occurs.

How to batch convert a folder of PDFs to Markdown?

Use the provided Python batch script that iterates over the pdfs directory, skips existing Markdown caches over 100 characters, and falls back to pdftotext when markitdown output is under 50 characters.

MarkItDown vs pdftotext for PDF conversion?

MarkItDown is preferred because it preserves LaTeX inline math, table structure, and section headings, while pdftotext serves only as a fallback when MarkItDown fails or returns too little text.

Does MarkItDown support OCR for scanned PDFs?

No, MarkItDown has no OCR capability. For scanned or image-only PDFs, use pdftoppm with Tesseract or the marker-pdf pipeline to extract text instead.

Why does MarkItDown return zero characters for some PDFs?

The PDF is likely corrupted or lacks a text layer, with symptoms like a broken xref table or mutool reporting a missing page tree. Write a placeholder file and seek an arXiv/PMC alternative, manual summary, or OCR.

How do I avoid converting reference PDFs instead of the main paper?

Select the largest PDF while excluding files matching reference, template, or graphical patterns and author-year citation names. Modification time and directory-name matching serve as secondary signals.