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 从公开仓库中收录这些内容。

举报或申请下架