@6171/doc-to-markdown
Installation
SKILL.md
📄 doc-to-markdown
Universal document-to-Markdown converter. Turn PDF, Word, PowerPoint, Excel, HTML, and text files into clean Markdown — preserving headings, tables, lists, and structure. Designed for AI agents that need to read document content.
Supported formats
| Format | Extensions | Library | Notes |
|---|---|---|---|
.pdf |
pdfplumber |
Text + tables extracted page by page | |
| Word | .docx |
python-docx |
Headings, paragraphs, tables, lists |
| PowerPoint | .pptx |
python-pptx |
Slide-by-slide, titles + body text + tables |
| Excel | .xlsx |
openpyxl |
Each sheet → Markdown table |
| CSV | .csv |
stdlib csv |
First row = header row |
| HTML | .html, .htm |
BeautifulSoup |
Strips tags, keeps structure |
| Text | .txt, .md, .rst |
stdlib | Pass-through with light cleanup |