mcpField
M
markdown-converter

markdown-converter

github.com/intellectronicaDocuments2981.7k installsUpdated 27w ago
Repository

About markdown-converter

markdown-converter is a skill for converting files to Markdown with `uvx markitdown`, without a separate installation. It is suited to workflows that need document structure preserved in Markdown output.

Key features

  1. 01Run conversions without installation
  2. 02Support document, web, and data formats
  3. 03Process image OCR and audio transcription
  4. 04Preserve headings, tables, lists, and links
  5. 05Use plugins and Azure Document Intelligence

Use cases

  1. 01Convert PDFs, Word files, or presentations to Markdown
  2. 02Turn CSV, JSON, or HTML into readable text
  3. 03Extract text from images and audio

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/intellectronica/agent-skills --skill markdown-converter

After installing, type/markdown-converterin Claude Code to confirm it loaded.

Details

From the project README

Markdown Converter

Convert files to Markdown using uvx markitdown — no installation required.

Basic Usage

# Convert to stdout
uvx markitdown input.pdf

# Save to file
uvx markitdown input.pdf -o output.md
uvx markitdown input.docx > output.md

# From stdin
cat input.pdf | uvx markitdown

Supported Formats

  • Documents: PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls)
  • Web/Data: HTML, CSV, JSON, XML
  • Media: Images (EXIF + OCR), Audio (EXIF + transcription)
  • Other: ZIP (iterates contents), YouTube URLs, EPub

Options

-o OUTPUT      # Output file
-x EXTENSION   # Hint file extension (for stdin)
-m MIME_TYPE   # Hint MIME type
-c CHARSET     # Hint charset (e.g., UTF-8)
-d             # Use Azure Document Intelligence
-e ENDPOINT    # Document Intelligence endpoint
--use-plugins  # Enable 3rd-party plugins
--list-plugins # Show installed plugins

Examples

# Convert Word document
uvx markitdown report.docx -o report.md

# Convert Excel spreadsheet
uvx markitdown data.xlsx > data.md

# Convert PowerPoint presentation
uvx markitdown slides.pptx -o slides.md

# Convert with file type hint (for stdin)
cat document | uvx markitdown -x .pdf > output.md

# Use Azure Document Intelligence for better PDF extraction
uvx markitdown scan.pdf -d -e "https://your-resource.cognitiveservices.azure.com/"

Notes

  • Output preserves document structure: headings, tables, lists, links
  • First run caches dependencies; subsequent runs are faster
  • For complex PDFs with poor extraction, use -d with Azure Document Intelligence

Comments

Markdown supported