Установка
SKILL.md
MarkItDown Skill
Microsoft's Python utility for converting various file formats to Markdown for LLM and text analysis pipelines.
Overview
MarkItDown converts documents while preserving structure (headings, lists, tables, links). It's optimized for LLM consumption rather than human-readable output.
Supported Formats
| Category | Formats |
|---|---|
| Documents | PDF, Word (DOCX), PowerPoint (PPTX), Excel (XLSX, XLS) |
| Media | Images (EXIF + OCR), Audio (WAV, MP3 transcription) |
| Web | HTML, YouTube URLs, Wikipedia, RSS/Atom feeds |
| Data | CSV, JSON, XML, Jupyter notebooks (.ipynb) |
| Archives | ZIP (iterates contents), EPub |
| Outlook MSG files |
Quick Start
Installation
# Full installation (recommended)
pip install 'markitdown[all]'
# Minimal with specific formats
pip install 'markitdown[pdf,docx,pptx]'
# Using uv
uv pip install 'markitdown[all]'
Optional Dependencies
| Extra | Description |
|---|---|
[all] | All optional dependencies |
[pdf] | PDF file support |
[docx] | Word documents |
[pptx] | PowerPoint presentations |
[xlsx] | Excel spreadsheets |
[xls] | Legacy Excel files |
[outlook] | Outlook MSG files |
[az-doc-intel] | Azure Document Intelligence |
[audio-transcription] | WAV/MP3 transcription |
[youtube-transcription] | YouTube video transcripts |
Command-Line Usage
# Basic conversion
markitdown document.pdf > output.md
# Specify output file
markitdown document.pdf -o output.md
# Pipe input
cat document.pdf | markitdown > output.md
# With Azure Document Intelligence
markitdown document.pdf -o output.md -d -e "<endpoint>"
Python API
from markitdown import MarkItDown
# Basic conversion
md = MarkItDown()
result = md.convert("document.xlsx")
print(result.text_content)
# With LLM for image descriptions
from openai import OpenAI
client = OpenAI()
md = MarkItDown(
llm_client=client,
llm_model="gpt-4o",
llm_prompt="Describe this image in detail"
)
result = md.convert("image.jpg")
print(result.text_content)
# With Azure Document Intelligence
md = MarkItDown(docintel_endpoint="<your-endpoint>")
result = md.convert("complex-document.pdf")
print(result.text_content)
Common Use Cases
Batch Convert Directory
from markitdown import MarkItDown
from pathlib import Path
md = MarkItDown()
input_dir = Path("./documents")
output_dir = Path("./markdown")
output_dir.mkdir(exist_ok=True)
for file in input_dir.glob("*"):
if file.is_file():
try:
result = md.convert(str(file))
output_file = output_dir / f"{file.stem}.md"
output_file.write_text(result.text_content)
print(f"Converted: {file.name}")
except Exception as e:
print(f"Failed: {file.name} - {e}")
Process for LLM Context
from markitdown import MarkItDown
def prepare_for_llm(file_path: str) -> str:
"""Convert document to LLM-ready markdown."""
md = MarkItDown()
result = md.convert(file_path)
# Add source reference
content = f"# Source: {file_path}\n\n{result.text_content}"
return content
# Use with your LLM
context = prepare_for_llm("report.pdf")
Extract YouTube Transcript
# CLI
markitdown "https://www.youtube.com/watch?v=VIDEO_ID" > transcript.md
# Python
from markitdown import MarkItDown
md = MarkItDown()
result = md.convert("https://www.youtube.com/watch?v=VIDEO_ID")
print(result.text_content)
Image OCR with AI Description
from markitdown import MarkItDown
from openai import OpenAI
# Initialize with LLM support
client = OpenAI()
md = MarkItDown(
llm_client=client,
llm_model="gpt-4o"
)
# Convert image with AI description
result = md.convert("screenshot.png")
print(result.text_content)
Convert Jupyter Notebook
from markitdown import MarkItDown
md = MarkItDown()
result = md.convert("analysis.ipynb")
print(result.text_content) # Code cells, outputs, markdown
Extract Wikipedia Content
from markitdown import MarkItDown
md = MarkItDown()
result = md.convert("https://en.wikipedia.org/wiki/Python")
print(result.text_content) # Main article content only
Parse RSS Feed
from markitdown import MarkItDown
md = MarkItDown()
result = md.convert("https://example.com/feed.xml")
print(result.text_content) # Feed entries as markdown
Plugin System
MarkItDown supports third-party plugins for extended functionality.
# List installed plugins
markitdown --list-plugins
# Enable plugins during conversion
markitdown --use-plugins document.pdf
# Enable plugins in Python
md = MarkItDown(enable_plugins=True)
result = md.convert("document.pdf")
Search GitHub for
#markitdown-pluginto find available plugins.
MCP Server Integration
MarkItDown offers an MCP (Model Context Protocol) server for integration with LLM applications like Claude Desktop.
# Install MCP server
pip install markitdown-mcp
# Or from source
git clone https://github.com/microsoft/markitdown.git
cd markitdown/packages/markitdown-mcp
pip install -e .
See markitdown-mcp for configuration details.
Docker Usage
# Build image
docker build -t markitdown:latest .
# Convert file
docker run --rm -i markitdown:latest < document.pdf > output.md
Troubleshooting
| Issue | Solution |
|---|---|
| Missing dependencies | Install with pip install 'markitdown[all]' |
| PDF extraction fails | Try Azure Document Intelligence for complex PDFs |
| Image text not extracted | Ensure OCR dependencies installed or use LLM mode |
| Large file timeout | Process in chunks or use streaming |
| Plugin not found | Run markitdown --list-plugins to verify installation |
Common Errors
# ModuleNotFoundError for specific format
pip install 'markitdown[pdf]' # Install missing dependency
# Azure authentication
export AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT="<endpoint>"
export AZURE_DOCUMENT_INTELLIGENCE_KEY="<key>"
Requirements
- Python >= 3.10
- Virtual environment recommended
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
# Install
pip install 'markitdown[all]'
References
references/cli-reference.md- Complete CLI optionsreferences/api-reference.md- Python API detailsreferences/examples.md- Extended examplesreferences/advanced-features.md- Custom converters, URI handling- GitHub: https://github.com/microsoft/markitdown
- PyPI: https://pypi.org/project/markitdown/
Gotchas
- DOCX with embedded images: images extract to separate files; markdown uses absolute paths — moving the markdown file alone breaks the image refs.
- PDF OCR confidence isn't surfaced — low-confidence text is returned as if certain; downstream LLM use can be confidently wrong.
- XLSX merged cells extract as separate cells with empty values for non-anchor positions — pivoted reports lose their column groupings invisibly.
- HTML to markdown loses CSS-driven layout — column-positioned tables collapse to row-major linear output; complex tables become unparseable.
- The
--use-llmflag for image descriptions silently falls back to filename if no OPENAI_API_KEY — outputs look populated but contain no real description.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: markitdown](https://darkplay.ru/ai/skills/claude-code-skills-markitdown)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Та же категория — сравните, что ещё подойдёт под вашу задачу.
ppt-generationbytedance · Создаёт презентации (PPT/PPTX) по запросу пользователя: генерирует изображения для…
ppt-masterhugohe3 · Рабочий процесс создания презентаций на базе ИИ: генерация редактируемых PPTX, создание…
slidevslidevjs · Создание веб-презентаций для разработчиков на Slidev с Markdown, Vue и анимациями.
officecliiofficeai · Создание, анализ, вычитка и изменение документов Office (.docx, .xlsx, .pptx) с помощью…
guizang-ppt-skillop7418 · Навык генерации HTML-слайдов в редакционном и швейцарском стиле.
huashu-designalchaincyf · HTML-нативный дизайн-навык для Claude Code: прототипы, слайды, анимации.
pptx-generatorminimax-ai · Создание, редактирование и чтение презентаций PowerPoint. Создание с нуля через PptxGenJS…
dashi-pptchuspeeism · Навык ИИ-агента для создания редактируемых в браузере презентаций из визуальных тем с…
html-pptlewislulu · HTML PPT Studio — создание статических HTML-презентаций на шаблонах: стили, макеты и…
vscode-sftp-configlibukai · Навык для настройки SFTP-деплоя статических сайтов на продакшен-серверы: перевод проектов…Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
parse-mcpanthropics · Один MCP с несколькими парсерами: маршрутизация между markitdown (по умолчанию), Docling…
markdown-converterintellectronica · Конвертация документов и файлов в Markdown через markitdown: PDF, Word, PowerPoint…
io.github.Zahid-Abbas-Ali-Baig/document-converterZahid-Abbas-Ali-Baig · Конвертация документов в Markdown с помощью MarkItDown
markitdown-rsmajiayu000 · Конвертация PDF, Office, HTML, EPUB и URL в Markdown на Rust.
One MCP, many parsersadelaidasofia · Один MCP, много парсеров: маршрутизация между markitdown, Docling и LlamaParse плюс…Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton