Markdown Converter

作者 intellectronica9b0e00ad1b94無授權條款295 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫5 個月前更新

Convert documents and files to Markdown using markitdown. Use when converting PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx, .xls), HTML, CSV, JSON, XML, images (with EXIF/OCR), audio (with transcription), ZIP archives, YouTube URLs, or EPubs to Markdown format for LLM processing or text analysis.

僅含說明Documents & Office
AI 產生的概覽

使用 markitdown 將 PDF、Word、PowerPoint、Excel、HTML、CSV、圖片、音訊、ZIP 和 EPub 等文件與檔案轉換為 Markdown。

功能
此技能指示代理透過 uvx 執行 markitdown 命令列工具,將支援的檔案類型轉換為 Markdown。它涵蓋文件、網頁與資料格式、含 EXIF/OCR 或轉錄的媒體、ZIP 壓縮檔、YouTube 網址和 EPub,並可將輸出寫入標準輸出或檔案。選項包括副檔名、MIME 類型和字元集提示、用於處理困難 PDF 的 Azure Document Intelligence,以及第三方外掛。產生的 Markdown 會保留標題、表格、清單和連結,方便 LLM 處理或文字分析。
適用情境
當你需要將 PDF、Office 檔案、HTML、CSV、JSON、XML、圖片、音訊、ZIP 壓縮檔、YouTube 網址或 EPub 轉換為 Markdown 文字時使用。它適合為 LLM 處理或文字分析準備文件,也適合藉助 Azure Document Intelligence 從複雜 PDF 擷取可讀內容。
執行需求
需要 uvx 執行環境來執行 markitdown;無需安裝,首次執行會快取相依套件。選用的 Azure Document Intelligence 需要端點和認證。uvx 相依套件取得和 YouTube 網址需要網路存取。不附指令碼,僅為說明文件。

Markdown Converter

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

Basic Usage

bash
# Convert to stdoutuvx markitdown input.pdf
# Save to fileuvx markitdown input.pdf -o output.mduvx markitdown input.docx > output.md
# From stdincat 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

bash
-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

bash
# Convert Word documentuvx markitdown report.docx -o report.md
# Convert Excel spreadsheetuvx markitdown data.xlsx > data.md
# Convert PowerPoint presentationuvx 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 extractionuvx 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

來源與署名

來源:intellectronica/agent-skills位於skills/markdown-converter提交9b0e00a

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架