一键导入
pandoc
Universal document converter using pandoc. Convert between any supported formats including markdown, docx, html, pdf, latex, epub, rst, and many more.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Universal document converter using pandoc. Convert between any supported formats including markdown, docx, html, pdf, latex, epub, rst, and many more.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Crawl and sanitize external websites for LLM ingestion. Use when needing to crawl comindware.ru or cmwlab.com, sanitize scraped content, or manage the crawl→sanitize pipeline. Supports --fresh (from scratch) and --resume (checkpoint) workflows.
Use when you've completed a non-trivial task and need to document discoveries, patterns, or gotchas for future sessions. Also use to review the discovery log before starting similar work.
Transcribe meeting recordings with Google Gemini for future documentation work. Use when the user provides a video file and needs a structured Markdown transcript with timestamps, visual notes, and summary in .scratch/.
Use when working on the PHPKB cloning and post-clone migration workflow in this repository: creating a new PHPKB section for a new product version, publishing a new MkDocs article by cloning an adjacent PHPKB article, syncing changed for_kb_import_ru HTML back to PHPKB by kb-id (git diff batch), cloning PHPKB categories or articles, updating cloned PHPKB article/category links, migrating local docs IDs with clone mappings, fixing related topics after cloning, or analyzing/updating scripts in utilities/phpkb_cloning.
Use when writing or answering about N3/Turtle/RDF/Notation3/Triples in Comindware Platform
Reference files and patterns for writing C# scripts in Comindware Platform
| name | pandoc |
| description | Universal document converter using pandoc. Convert between any supported formats including markdown, docx, html, pdf, latex, epub, rst, and many more. |
| triggers | ["convert to","convert this","pandoc","export as"] |
Universal document converter supporting 50+ formats.
# Basic conversion (auto-detect from extensions)
pandoc input.docx -o output.md
# Specify formats explicitly
pandoc input.txt --from docx --to markdown -o output.md
pandoc input.md --to pdf -o output.pdf
# Extract media (images) from document
pandoc input.docx -o output.md --extract-media=./media
# List all supported formats
pandoc --list-input-formats
pandoc --list-output-formats
Documents: markdown, docx, html, pdf, latex, epub, rst, odt, rtf, txt
Code/Data: json, yaml, csv, tsv
Web: html, xhtml
Markup: asciidoc, org, textile, mediawiki
Books: epub, fb2
| Option | Description |
|---|---|
-f, --from | Input format |
-t, --to | Output format |
-o | Output file |
--extract-media=DIR | Extract images to directory |
--wrap=none | Don't wrap lines |
--standalone | Full document with headers |
--toc | Add table of contents |
--pdf-engine=ENGINE | xelatex, pdflatex, lualatex, wkhtmltopdf |
-V KEY=VAL | Set template variable |
--resource-path=PATH | Search path for images/resources |
# Word to Markdown with images
pandoc report.docx -o report.md --extract-media=./images
# Markdown to PDF (requires LaTeX)
pandoc README.md -o README.pdf --pdf-engine=xelatex
# Markdown to standalone HTML
pandoc doc.md -o doc.html --standalone --toc
# HTML to Word
pandoc page.html -o page.docx
# Multiple files to one PDF
pandoc chapter1.md chapter2.md chapter3.md -o book.pdf
# Extract all images from Word document
pandoc input.docx -o output.md --extract-media=./extracted_images
# Convert with specific image handling
pandoc input.docx -o output.md \
--extract-media=./media \
--resource-path=./media
# Custom CSS for HTML output
pandoc input.md -o output.html --css=style.css
# Set metadata
pandoc input.md -o output.pdf -V geometry:margin=1in -V fontsize=12pt
# Filters (e.g., citeproc for citations)
pandoc input.md -o output.pdf --filter=pandoc-citeproc
# From stdin to stdout
cat file.md | pandoc -f markdown -t html > file.html
# macOS
brew install pandoc
# Ubuntu/Debian
sudo apt-get install pandoc
# Windows
choco install pandoc
# or
winget install JohnMacFarlane.Pandoc
# For PDF output, also install LaTeX:
# macOS: brew install --cask mactex-no-gui
# Ubuntu: sudo apt-get install texlive-xetex
--extract-media when images matter-f/-t when auto-detection might failxelatex for better Unicode/font support--wrap=none for cleaner diffs in version control| Problem | Solution |
|---|---|
| "pdf-engine not found" | Install LaTeX (texlive/mactex) |
| Images not showing | Use --extract-media + --resource-path |
| Encoding issues | Use --from to specify input encoding |
| Missing fonts | Install fonts or use --pdf-engine=xelatex |