Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Pandoc

$ pandoc Community Low Risk
John MacFarlane · Design & Docs · GPL-2.0-or-later · macos / linux / windows

Pandoc (pandoc) is the Swiss-army knife of markup conversion, translating between dozens of document formats including Markdown, CommonMark, HTML, LaTeX, Word .docx, EPUB, and Pandoc's structured JSON AST (-t json). Pure local execution and deterministic stdin/stdout pipelines make it ideal for coding agents.

FCRS-1.0 Score
94 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install pandoc
CLI vs MCP Decision CLI Only

Pandoc converts local files directly via zero-latency stdin/stdout pipes and AST JSON (-t json), with no need for an MCP bridge.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Pure non-interactive Unix filter supporting stdin/stdout, -t json AST export, and deterministic exit codes.

  • -t json outputs full document AST for programmatic inspection
  • Never prompts interactively on stdin/stdout
Trust & Safety 24 / 25

Offline local processor with --sandbox mode to restrict file I/O when handling untrusted documents.

  • Built-in --sandbox flag blocks external file/URL inclusion
  • Zero network or credential surface by default
Setup & Portability 14 / 15

Prebuilt static Haskell binaries via Homebrew, apt, winget, Chocolatey, and GitHub releases across all major OSes.

  • brew install pandoc and standalone installers
Utility & Efficiency 15 / 15

Unmatched breadth across 40+ document formats, Lua filters, citations, and --pdf-engine backends.

  • Converts Markdown, DOCX, HTML, LaTeX, Typst, EPUB, and JSON AST
Maintenance & Lineage 9 / 10

Decades-long gold standard (jgm/pandoc) with steady releases and huge ecosystem adoption.

  • Actively maintained on GitHub under GPL-2.0-or-later
Docs & Verifiability 9 / 10

Exhaustive official User's Guide (MANUAL.html) and --list-* introspection flags.

  • Official manual at pandoc.org/MANUAL.html

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials required; operates purely on local files and stdin/stdout streams.

Side Effects
Read-Only Local Write
Cost & Quotas

Free open-source software (GPL-2.0-or-later); PDF export may optionally use TeX Live or Typst.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Pandoc Agent Rules
- Always write converted artifacts to a separate output path via `-o` rather than overwriting source documents.
- For PDF output, check whether `typst`, `weasyprint`, or LaTeX (`--pdf-engine`) is installed before invoking.
- Use `--sandbox` when processing untrusted external Markdown/HTML inputs.

Agent-Ready Command Recipes

Safe Read-Only Queries

Parse Markdown into Pandoc JSON AST
pandoc README.md -t json

Parses a Markdown document into Pandoc's structured JSON AST on stdout without writing files.

List supported input and output formats
pandoc --list-output-formats

Enumerates all compiled target document formats locally.

Controlled Writes & Previews

Convert Markdown report to DOCX
pandoc report.md -o dist/report.docx

Generates a formatted Word .docx file at dist/report.docx from Markdown.

Strengths for Agents

  • + Zero-prompt Unix filter design with -t json AST output and --sandbox safety mode.
  • + Unmatched format coverage (Markdown, DOCX, HTML, LaTeX, EPUB, Typst).
  • + Cross-platform standalone binary with rich --list-input-formats / --list-output-formats introspection.

Caveats & Pitfalls

  • ! PDF generation requires an external --pdf-engine such as xelatex, typst, or weasyprint.
  • ! GPL-2.0-or-later license applies if embedding Haskell internals directly.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI