[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73XS7PHSTKPFSF34EGR146H":3,"skill-same:01M73XS7PHSTKPFSF34EGR146H":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M73XS7PHSTKPFSF34EGR146H","markitdown",null,"Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: markitdown\ndescription: \"Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.\"\nallowed-tools: [Read, Write, Edit, Bash]\nlicense: MIT\nsource: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown\n---\n\n# MarkItDown - File to Markdown Conversion\n\n## Overview\n\nMarkItDown is a Python tool developed by Microsoft for converting various file formats to Markdown. It's particularly useful for converting documents into LLM-friendly text format, as Markdown is token-efficient and well-understood by modern language models.\n\n**Key Benefits**:\n- Convert documents to clean, structured Markdown\n- Token-efficient format for LLM processing\n- Supports 15+ file formats\n- Optional AI-enhanced image descriptions\n- OCR for images and scanned documents\n- Speech transcription for audio files\n\n## Visual Enhancement with Scientific Schematics\n\n**When creating documents with this skill, always consider adding scientific diagrams and schematics to enhance visual communication.**\n\nIf your document does not already contain schematics or diagrams:\n- Use the **scientific-schematics** skill to generate AI-powered publication-quality diagrams\n- Simply describe your desired diagram in natural language\n- Nano Banana Pro will automatically generate, review, and refine the schematic\n\n**For new documents:** Scientific schematics should be generated by default to visually represent key concepts, workflows, architectures, or relationships described in the text.\n\n**How to generate schematics:**\n```bash\npython scripts\u002Fgenerate_schematic.py \"your diagram description\" -o figures\u002Foutput.png\n```\n\nThe AI will automatically:\n- Create publication-quality images with proper formatting\n- Review and refine through multiple iterations\n- Ensure accessibility (colorblind-friendly, high contrast)\n- Save outputs in the figures\u002F directory\n\n**When to add schematics:**\n- Document conversion workflow diagrams\n- File format architecture illustrations\n- OCR processing pipeline diagrams\n- Integration workflow visualizations\n- System architecture diagrams\n- Data flow diagrams\n- Any complex concept that benefits from visualization\n\nFor detailed guidance on creating schematics, refer to the scientific-schematics skill documentation.\n\n---\n\n## Supported Formats\n\n| Format | Description | Notes |\n|--------|-------------|-------|\n| **PDF** | Portable Document Format | Full text extraction |\n| **DOCX** | Microsoft Word | Tables, formatting preserved |\n| **PPTX** | PowerPoint | Slides with notes |\n| **XLSX** | Excel spreadsheets | Tables and data |\n| **Images** | JPEG, PNG, GIF, WebP | EXIF metadata + OCR |\n| **Audio** | WAV, MP3 | Metadata + transcription |\n| **HTML** | Web pages | Clean conversion |\n| **CSV** | Comma-separated values | Table format |\n| **JSON** | JSON data | Structured representation |\n| **XML** | XML documents | Structured format |\n| **ZIP** | Archive files | Iterates contents |\n| **EPUB** | E-books | Full text extraction |\n| **YouTube** | Video URLs | Fetch transcriptions |\n\n## Quick Start\n\n### Installation\n\n```bash\n# Install with all features\npip install 'markitdown[all]'\n\n# Or from source\ngit clone https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown.git\ncd markitdown\npip install -e 'packages\u002Fmarkitdown[all]'\n```\n\n### Command-Line Usage\n\n```bash\n# Basic conversion\nmarkitdown document.pdf > output.md\n\n# Specify output file\nmarkitdown document.pdf -o output.md\n\n# Pipe content\ncat document.pdf | markitdown > output.md\n\n# Enable plugins\nmarkitdown --list-plugins  # List available plugins\nmarkitdown --use-plugins document.pdf -o output.md\n```\n\n### Python API\n\n```python\nfrom markitdown import MarkItDown\n\n# Basic usage\nmd = MarkItDown()\nresult = md.convert(\"document.pdf\")\nprint(result.text_content)\n\n# Convert from stream\nwith open(\"document.pdf\", \"rb\") as f:\n    result = md.convert_stream(f, file_extension=\".pdf\")\n    print(result.text_content)\n```\n\n## Advanced Features\n\n### 1. AI-Enhanced Image Descriptions\n\nUse LLMs via OpenRouter to generate detailed image descriptions (for PPTX and image files):\n\n```python\nfrom markitdown import MarkItDown\nfrom openai import OpenAI\n\n# Initialize OpenRouter client (OpenAI-compatible API)\nclient = OpenAI(\n    api_key=\"your-openrouter-api-key\",\n    base_url=\"https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\"\n)\n\nmd = MarkItDown(\n    llm_client=client,\n    llm_model=\"anthropic\u002Fclaude-sonnet-4.5\",  # recommended for scientific vision\n    llm_prompt=\"Describe this image in detail for scientific documentation\"\n)\n\nresult = md.convert(\"presentation.pptx\")\nprint(result.text_content)\n```\n\n### 2. Azure Document Intelligence\n\nFor enhanced PDF conversion with Microsoft Document Intelligence:\n\n```bash\n# Command line\nmarkitdown document.pdf -o output.md -d -e \"\u003Cdocument_intelligence_endpoint>\"\n```\n\n```python\n# Python API\nfrom markitdown import MarkItDown\n\nmd = MarkItDown(docintel_endpoint=\"\u003Cdocument_intelligence_endpoint>\")\nresult = md.convert(\"complex_document.pdf\")\nprint(result.text_content)\n```\n\n### 3. Plugin System\n\nMarkItDown supports 3rd-party plugins for extending functionality:\n\n```bash\n# List installed plugins\nmarkitdown --list-plugins\n\n# Enable plugins\nmarkitdown --use-plugins file.pdf -o output.md\n```\n\nFind plugins on GitHub with hashtag: `#markitdown-plugin`\n\n## Optional Dependencies\n\nControl which file formats you support:\n\n```bash\n# Install specific formats\npip install 'markitdown[pdf, docx, pptx]'\n\n# All available options:\n# [all]                  - All optional dependencies\n# [pptx]                 - PowerPoint files\n# [docx]                 - Word documents\n# [xlsx]                 - Excel spreadsheets\n# [xls]                  - Older Excel files\n# [pdf]                  - PDF documents\n# [outlook]              - Outlook messages\n# [az-doc-intel]         - Azure Document Intelligence\n# [audio-transcription]  - WAV and MP3 transcription\n# [youtube-transcription] - YouTube video transcription\n```\n\n## Common Use Cases\n\n### 1. Convert Scientific Papers to Markdown\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# Convert PDF paper\nresult = md.convert(\"research_paper.pdf\")\nwith open(\"paper.md\", \"w\") as f:\n    f.write(result.text_content)\n```\n\n### 2. Extract Data from Excel for Analysis\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"data.xlsx\")\n\n# Result will be in Markdown table format\nprint(result.text_content)\n```\n\n### 3. Process Multiple Documents\n\n```python\nfrom markitdown import MarkItDown\nimport os\nfrom pathlib import Path\n\nmd = MarkItDown()\n\n# Process all PDFs in a directory\npdf_dir = Path(\"papers\u002F\")\noutput_dir = Path(\"markdown_output\u002F\")\noutput_dir.mkdir(exist_ok=True)\n\nfor pdf_file in pdf_dir.glob(\"*.pdf\"):\n    result = md.convert(str(pdf_file))\n    output_file = output_dir \u002F f\"{pdf_file.stem}.md\"\n    output_file.write_text(result.text_content)\n    print(f\"Converted: {pdf_file.name}\")\n```\n\n### 4. Convert PowerPoint with AI Descriptions\n\n```python\nfrom markitdown import MarkItDown\nfrom openai import OpenAI\n\n# Use OpenRouter for access to multiple AI models\nclient = OpenAI(\n    api_key=\"your-openrouter-api-key\",\n    base_url=\"https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\"\n)\n\nmd = MarkItDown(\n    llm_client=client,\n    llm_model=\"anthropic\u002Fclaude-sonnet-4.5\",  # recommended for presentations\n    llm_prompt=\"Describe this slide image in detail, focusing on key visual elements and data\"\n)\n\nresult = md.convert(\"presentation.pptx\")\nwith open(\"presentation.md\", \"w\") as f:\n    f.write(result.text_content)\n```\n\n### 5. Batch Convert with Different Formats\n\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\nmd = MarkItDown()\n\n# Files to convert\nfiles = [\n    \"document.pdf\",\n    \"spreadsheet.xlsx\",\n    \"presentation.pptx\",\n    \"notes.docx\"\n]\n\nfor file in files:\n    try:\n        result = md.convert(file)\n        output = Path(file).stem + \".md\"\n        with open(output, \"w\") as f:\n            f.write(result.text_content)\n        print(f\"✓ Converted {file}\")\n    except Exception as e:\n        print(f\"✗ Error converting {file}: {e}\")\n```\n\n### 6. Extract YouTube Video Transcription\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# Convert YouTube video to transcript\nresult = md.convert(\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=VIDEO_ID\")\nprint(result.text_content)\n```\n\n## Docker Usage\n\n```bash\n# Build image\ndocker build -t markitdown:latest .\n\n# Run conversion\ndocker run --rm -i markitdown:latest \u003C ~\u002Fdocument.pdf > output.md\n```\n\n## Best Practices\n\n### 1. Choose the Right Conversion Method\n\n- **Simple documents**: Use basic `MarkItDown()`\n- **Complex PDFs**: Use Azure Document Intelligence\n- **Visual content**: Enable AI image descriptions\n- **Scanned documents**: Ensure OCR dependencies are installed\n\n### 2. Handle Errors Gracefully\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\ntry:\n    result = md.convert(\"document.pdf\")\n    print(result.text_content)\nexcept FileNotFoundError:\n    print(\"File not found\")\nexcept Exception as e:\n    print(f\"Conversion error: {e}\")\n```\n\n### 3. Process Large Files Efficiently\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# For large files, use streaming\nwith open(\"large_file.pdf\", \"rb\") as f:\n    result = md.convert_stream(f, file_extension=\".pdf\")\n    \n    # Process in chunks or save directly\n    with open(\"output.md\", \"w\") as out:\n        out.write(result.text_content)\n```\n\n### 4. Optimize for Token Efficiency\n\nMarkdown output is already token-efficient, but you can:\n- Remove excessive whitespace\n- Consolidate similar sections\n- Strip metadata if not needed\n\n```python\nfrom markitdown import MarkItDown\nimport re\n\nmd = MarkItDown()\nresult = md.convert(\"document.pdf\")\n\n# Clean up extra whitespace\nclean_text = re.sub(r'\\n{3,}', '\\n\\n', result.text_content)\nclean_text = clean_text.strip()\n\nprint(clean_text)\n```\n\n## Integration with Scientific Workflows\n\n### Convert Literature for Review\n\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\nmd = MarkItDown()\n\n# Convert all papers in literature folder\npapers_dir = Path(\"literature\u002Fpdfs\")\noutput_dir = Path(\"literature\u002Fmarkdown\")\noutput_dir.mkdir(exist_ok=True)\n\nfor paper in papers_dir.glob(\"*.pdf\"):\n    result = md.convert(str(paper))\n    \n    # Save with metadata\n    output_file = output_dir \u002F f\"{paper.stem}.md\"\n    content = f\"# {paper.stem}\\n\\n\"\n    content += f\"**Source**: {paper.name}\\n\\n\"\n    content += \"---\\n\\n\"\n    content += result.text_content\n    \n    output_file.write_text(content)\n\n# For AI-enhanced conversion with figures\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=\"your-openrouter-api-key\",\n    base_url=\"https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\"\n)\n\nmd_ai = MarkItDown(\n    llm_client=client,\n    llm_model=\"anthropic\u002Fclaude-sonnet-4.5\",\n    llm_prompt=\"Describe scientific figures with technical precision\"\n)\n```\n\n### Extract Tables for Analysis\n\n```python\nfrom markitdown import MarkItDown\nimport re\n\nmd = MarkItDown()\nresult = md.convert(\"data_tables.xlsx\")\n\n# Markdown tables can be parsed or used directly\nprint(result.text_content)\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Missing dependencies**: Install feature-specific packages\n   ```bash\n   pip install 'markitdown[pdf]'  # For PDF support\n   ```\n\n2. **Binary file errors**: Ensure files are opened in binary mode\n   ```python\n   with open(\"file.pdf\", \"rb\") as f:  # Note the \"rb\"\n       result = md.convert_stream(f, file_extension=\".pdf\")\n   ```\n\n3. **OCR not working**: Install tesseract\n   ```bash\n   # macOS\n   brew install tesseract\n   \n   # Ubuntu\n   sudo apt-get install tesseract-ocr\n   ```\n\n## Performance Considerations\n\n- **PDF files**: Large PDFs may take time; consider page ranges if supported\n- **Image OCR**: OCR processing is CPU-intensive\n- **Audio transcription**: Requires additional compute resources\n- **AI image descriptions**: Requires API calls (costs may apply)\n\n## Next Steps\n\n- See `references\u002Fapi_reference.md` for complete API documentation\n- Check `references\u002Ffile_formats.md` for format-specific details\n- Review `scripts\u002Fbatch_convert.py` for automation examples\n- Explore `scripts\u002Fconvert_with_ai.py` for AI-enhanced conversions\n\n## Resources\n\n- **MarkItDown GitHub**: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown\n- **PyPI**: https:\u002F\u002Fpypi.org\u002Fproject\u002Fmarkitdown\u002F\n- **OpenRouter**: https:\u002F\u002Fopenrouter.ai (for AI-enhanced conversions)\n- **OpenRouter API Keys**: https:\u002F\u002Fopenrouter.ai\u002Fkeys\n- **OpenRouter Models**: https:\u002F\u002Fopenrouter.ai\u002Fmodels\n- **MCP Server**: markitdown-mcp (for Claude Desktop integration)\n- **Plugin Development**: See `packages\u002Fmarkitdown-sample-plugin`\n\n","# MarkItDown - File to Markdown Conversion\n\n## Overview\n\nMarkItDown is a Python tool developed by Microsoft for converting various file formats to Markdown. It's particularly useful for converting documents into LLM-friendly text format, as Markdown is token-efficient and well-understood by modern language models.\n\n**Key Benefits**:\n- Convert documents to clean, structured Markdown\n- Token-efficient format for LLM processing\n- Supports 15+ file formats\n- Optional AI-enhanced image descriptions\n- OCR for images and scanned documents\n- Speech transcription for audio files\n\n## Visual Enhancement with Scientific Schematics\n\n**When creating documents with this skill, always consider adding scientific diagrams and schematics to enhance visual communication.**\n\nIf your document does not already contain schematics or diagrams:\n- Use the **scientific-schematics** skill to generate AI-powered publication-quality diagrams\n- Simply describe your desired diagram in natural language\n- Nano Banana Pro will automatically generate, review, and refine the schematic\n\n**For new documents:** Scientific schematics should be generated by default to visually represent key concepts, workflows, architectures, or relationships described in the text.\n\n**How to generate schematics:**\n```bash\npython scripts\u002Fgenerate_schematic.py \"your diagram description\" -o figures\u002Foutput.png\n```\n\nThe AI will automatically:\n- Create publication-quality images with proper formatting\n- Review and refine through multiple iterations\n- Ensure accessibility (colorblind-friendly, high contrast)\n- Save outputs in the figures\u002F directory\n\n**When to add schematics:**\n- Document conversion workflow diagrams\n- File format architecture illustrations\n- OCR processing pipeline diagrams\n- Integration workflow visualizations\n- System architecture diagrams\n- Data flow diagrams\n- Any complex concept that benefits from visualization\n\nFor detailed guidance on creating schematics, refer to the scientific-schematics skill documentation.\n\n---\n\n## Supported Formats\n\n| Format | Description | Notes |\n|--------|-------------|-------|\n| **PDF** | Portable Document Format | Full text extraction |\n| **DOCX** | Microsoft Word | Tables, formatting preserved |\n| **PPTX** | PowerPoint | Slides with notes |\n| **XLSX** | Excel spreadsheets | Tables and data |\n| **Images** | JPEG, PNG, GIF, WebP | EXIF metadata + OCR |\n| **Audio** | WAV, MP3 | Metadata + transcription |\n| **HTML** | Web pages | Clean conversion |\n| **CSV** | Comma-separated values | Table format |\n| **JSON** | JSON data | Structured representation |\n| **XML** | XML documents | Structured format |\n| **ZIP** | Archive files | Iterates contents |\n| **EPUB** | E-books | Full text extraction |\n| **YouTube** | Video URLs | Fetch transcriptions |\n\n## Quick Start\n\n### Installation\n\n```bash\n# Install with all features\npip install 'markitdown[all]'\n\n# Or from source\ngit clone https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown.git\ncd markitdown\npip install -e 'packages\u002Fmarkitdown[all]'\n```\n\n### Command-Line Usage\n\n```bash\n# Basic conversion\nmarkitdown document.pdf > output.md\n\n# Specify output file\nmarkitdown document.pdf -o output.md\n\n# Pipe content\ncat document.pdf | markitdown > output.md\n\n# Enable plugins\nmarkitdown --list-plugins  # List available plugins\nmarkitdown --use-plugins document.pdf -o output.md\n```\n\n### Python API\n\n```python\nfrom markitdown import MarkItDown\n\n# Basic usage\nmd = MarkItDown()\nresult = md.convert(\"document.pdf\")\nprint(result.text_content)\n\n# Convert from stream\nwith open(\"document.pdf\", \"rb\") as f:\n    result = md.convert_stream(f, file_extension=\".pdf\")\n    print(result.text_content)\n```\n\n## Advanced Features\n\n### 1. AI-Enhanced Image Descriptions\n\nUse LLMs via OpenRouter to generate detailed image descriptions (for PPTX and image files):\n\n```python\nfrom markitdown import MarkItDown\nfrom openai import OpenAI\n\n# Initialize OpenRouter client (OpenAI-compatible API)\nclient = OpenAI(\n    api_key=\"your-openrouter-api-key\",\n    base_url=\"https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\"\n)\n\nmd = MarkItDown(\n    llm_client=client,\n    llm_model=\"anthropic\u002Fclaude-sonnet-4.5\",  # recommended for scientific vision\n    llm_prompt=\"Describe this image in detail for scientific documentation\"\n)\n\nresult = md.convert(\"presentation.pptx\")\nprint(result.text_content)\n```\n\n### 2. Azure Document Intelligence\n\nFor enhanced PDF conversion with Microsoft Document Intelligence:\n\n```bash\n# Command line\nmarkitdown document.pdf -o output.md -d -e \"\u003Cdocument_intelligence_endpoint>\"\n```\n\n```python\n# Python API\nfrom markitdown import MarkItDown\n\nmd = MarkItDown(docintel_endpoint=\"\u003Cdocument_intelligence_endpoint>\")\nresult = md.convert(\"complex_document.pdf\")\nprint(result.text_content)\n```\n\n### 3. Plugin System\n\nMarkItDown supports 3rd-party plugins for extending functionality:\n\n```bash\n# List installed plugins\nmarkitdown --list-plugins\n\n# Enable plugins\nmarkitdown --use-plugins file.pdf -o output.md\n```\n\nFind plugins on GitHub with hashtag: `#markitdown-plugin`\n\n## Optional Dependencies\n\nControl which file formats you support:\n\n```bash\n# Install specific formats\npip install 'markitdown[pdf, docx, pptx]'\n\n# All available options:\n# [all]                  - All optional dependencies\n# [pptx]                 - PowerPoint files\n# [docx]                 - Word documents\n# [xlsx]                 - Excel spreadsheets\n# [xls]                  - Older Excel files\n# [pdf]                  - PDF documents\n# [outlook]              - Outlook messages\n# [az-doc-intel]         - Azure Document Intelligence\n# [audio-transcription]  - WAV and MP3 transcription\n# [youtube-transcription] - YouTube video transcription\n```\n\n## Common Use Cases\n\n### 1. Convert Scientific Papers to Markdown\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# Convert PDF paper\nresult = md.convert(\"research_paper.pdf\")\nwith open(\"paper.md\", \"w\") as f:\n    f.write(result.text_content)\n```\n\n### 2. Extract Data from Excel for Analysis\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\nresult = md.convert(\"data.xlsx\")\n\n# Result will be in Markdown table format\nprint(result.text_content)\n```\n\n### 3. Process Multiple Documents\n\n```python\nfrom markitdown import MarkItDown\nimport os\nfrom pathlib import Path\n\nmd = MarkItDown()\n\n# Process all PDFs in a directory\npdf_dir = Path(\"papers\u002F\")\noutput_dir = Path(\"markdown_output\u002F\")\noutput_dir.mkdir(exist_ok=True)\n\nfor pdf_file in pdf_dir.glob(\"*.pdf\"):\n    result = md.convert(str(pdf_file))\n    output_file = output_dir \u002F f\"{pdf_file.stem}.md\"\n    output_file.write_text(result.text_content)\n    print(f\"Converted: {pdf_file.name}\")\n```\n\n### 4. Convert PowerPoint with AI Descriptions\n\n```python\nfrom markitdown import MarkItDown\nfrom openai import OpenAI\n\n# Use OpenRouter for access to multiple AI models\nclient = OpenAI(\n    api_key=\"your-openrouter-api-key\",\n    base_url=\"https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\"\n)\n\nmd = MarkItDown(\n    llm_client=client,\n    llm_model=\"anthropic\u002Fclaude-sonnet-4.5\",  # recommended for presentations\n    llm_prompt=\"Describe this slide image in detail, focusing on key visual elements and data\"\n)\n\nresult = md.convert(\"presentation.pptx\")\nwith open(\"presentation.md\", \"w\") as f:\n    f.write(result.text_content)\n```\n\n### 5. Batch Convert with Different Formats\n\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\nmd = MarkItDown()\n\n# Files to convert\nfiles = [\n    \"document.pdf\",\n    \"spreadsheet.xlsx\",\n    \"presentation.pptx\",\n    \"notes.docx\"\n]\n\nfor file in files:\n    try:\n        result = md.convert(file)\n        output = Path(file).stem + \".md\"\n        with open(output, \"w\") as f:\n            f.write(result.text_content)\n        print(f\"✓ Converted {file}\")\n    except Exception as e:\n        print(f\"✗ Error converting {file}: {e}\")\n```\n\n### 6. Extract YouTube Video Transcription\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# Convert YouTube video to transcript\nresult = md.convert(\"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=VIDEO_ID\")\nprint(result.text_content)\n```\n\n## Docker Usage\n\n```bash\n# Build image\ndocker build -t markitdown:latest .\n\n# Run conversion\ndocker run --rm -i markitdown:latest \u003C ~\u002Fdocument.pdf > output.md\n```\n\n## Best Practices\n\n### 1. Choose the Right Conversion Method\n\n- **Simple documents**: Use basic `MarkItDown()`\n- **Complex PDFs**: Use Azure Document Intelligence\n- **Visual content**: Enable AI image descriptions\n- **Scanned documents**: Ensure OCR dependencies are installed\n\n### 2. Handle Errors Gracefully\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\ntry:\n    result = md.convert(\"document.pdf\")\n    print(result.text_content)\nexcept FileNotFoundError:\n    print(\"File not found\")\nexcept Exception as e:\n    print(f\"Conversion error: {e}\")\n```\n\n### 3. Process Large Files Efficiently\n\n```python\nfrom markitdown import MarkItDown\n\nmd = MarkItDown()\n\n# For large files, use streaming\nwith open(\"large_file.pdf\", \"rb\") as f:\n    result = md.convert_stream(f, file_extension=\".pdf\")\n    \n    # Process in chunks or save directly\n    with open(\"output.md\", \"w\") as out:\n        out.write(result.text_content)\n```\n\n### 4. Optimize for Token Efficiency\n\nMarkdown output is already token-efficient, but you can:\n- Remove excessive whitespace\n- Consolidate similar sections\n- Strip metadata if not needed\n\n```python\nfrom markitdown import MarkItDown\nimport re\n\nmd = MarkItDown()\nresult = md.convert(\"document.pdf\")\n\n# Clean up extra whitespace\nclean_text = re.sub(r'\\n{3,}', '\\n\\n', result.text_content)\nclean_text = clean_text.strip()\n\nprint(clean_text)\n```\n\n## Integration with Scientific Workflows\n\n### Convert Literature for Review\n\n```python\nfrom markitdown import MarkItDown\nfrom pathlib import Path\n\nmd = MarkItDown()\n\n# Convert all papers in literature folder\npapers_dir = Path(\"literature\u002Fpdfs\")\noutput_dir = Path(\"literature\u002Fmarkdown\")\noutput_dir.mkdir(exist_ok=True)\n\nfor paper in papers_dir.glob(\"*.pdf\"):\n    result = md.convert(str(paper))\n    \n    # Save with metadata\n    output_file = output_dir \u002F f\"{paper.stem}.md\"\n    content = f\"# {paper.stem}\\n\\n\"\n    content += f\"**Source**: {paper.name}\\n\\n\"\n    content += \"---\\n\\n\"\n    content += result.text_content\n    \n    output_file.write_text(content)\n\n# For AI-enhanced conversion with figures\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=\"your-openrouter-api-key\",\n    base_url=\"https:\u002F\u002Fopenrouter.ai\u002Fapi\u002Fv1\"\n)\n\nmd_ai = MarkItDown(\n    llm_client=client,\n    llm_model=\"anthropic\u002Fclaude-sonnet-4.5\",\n    llm_prompt=\"Describe scientific figures with technical precision\"\n)\n```\n\n### Extract Tables for Analysis\n\n```python\nfrom markitdown import MarkItDown\nimport re\n\nmd = MarkItDown()\nresult = md.convert(\"data_tables.xlsx\")\n\n# Markdown tables can be parsed or used directly\nprint(result.text_content)\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Missing dependencies**: Install feature-specific packages\n   ```bash\n   pip install 'markitdown[pdf]'  # For PDF support\n   ```\n\n2. **Binary file errors**: Ensure files are opened in binary mode\n   ```python\n   with open(\"file.pdf\", \"rb\") as f:  # Note the \"rb\"\n       result = md.convert_stream(f, file_extension=\".pdf\")\n   ```\n\n3. **OCR not working**: Install tesseract\n   ```bash\n   # macOS\n   brew install tesseract\n   \n   # Ubuntu\n   sudo apt-get install tesseract-ocr\n   ```\n\n## Performance Considerations\n\n- **PDF files**: Large PDFs may take time; consider page ranges if supported\n- **Image OCR**: OCR processing is CPU-intensive\n- **Audio transcription**: Requires additional compute resources\n- **AI image descriptions**: Requires API calls (costs may apply)\n\n## Next Steps\n\n- See `references\u002Fapi_reference.md` for complete API documentation\n- Check `references\u002Ffile_formats.md` for format-specific details\n- Review `scripts\u002Fbatch_convert.py` for automation examples\n- Explore `scripts\u002Fconvert_with_ai.py` for AI-enhanced conversions\n\n## Resources\n\n- **MarkItDown GitHub**: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown\n- **PyPI**: https:\u002F\u002Fpypi.org\u002Fproject\u002Fmarkitdown\u002F\n- **OpenRouter**: https:\u002F\u002Fopenrouter.ai (for AI-enhanced conversions)\n- **OpenRouter API Keys**: https:\u002F\u002Fopenrouter.ai\u002Fkeys\n- **OpenRouter Models**: https:\u002F\u002Fopenrouter.ai\u002Fmodels\n- **MCP Server**: markitdown-mcp (for Claude Desktop integration)\n- **Plugin Development**: See `packages\u002Fmarkitdown-sample-plugin`\n\n",{"name":5,"source":25,"license":15,"description":7,"allowed-tools":26},"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmarkitdown",[27,28,29,30],"Read","Write","Edit","Bash","master","63f17866001c5ca854bf2fa0b678ce277133de5b","skills\u002Fmarketplace\u002Fmarkitdown",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill markitdown",{"tool":47,"command":48},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill markitdown",{"tool":50,"command":51},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill markitdown","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FSKILL.md",true,[55,61,66,70,74,78,82],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"INSTALLATION_GUIDE.md","REFERENCE","参考文档",6722,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FINSTALLATION_GUIDE.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",1075,{"path":67,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":68,"sourceHtmlUrl":69},"OPENROUTER_INTEGRATION.md",9671,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FOPENROUTER_INTEGRATION.md",{"path":71,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":72,"sourceHtmlUrl":73},"QUICK_REFERENCE.md",6823,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FQUICK_REFERENCE.md",{"path":75,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":76,"sourceHtmlUrl":77},"README.md",5013,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FREADME.md",{"path":79,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":80,"sourceHtmlUrl":81},"SKILL_SUMMARY.md",8765,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002FSKILL_SUMMARY.md",{"path":83,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":84,"sourceHtmlUrl":85},"skill-report.json",159278,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fmarkitdown\u002Fskill-report.json",[87,95,102,109,116,123],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":94},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":94},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":94},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":94},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":94},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":94},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]