All binaries

pandoc

ghcr.io/openotters/tools/pandoc:latest

Universal document converter. Convert between markdown, html, docx, latex, pdf, etc. Source on stdin, format flags as args.

Usage

Universal document converter. Standard pandoc CLI:

# Markdown -> HTML
{ "args": ["-f", "markdown", "-t", "html"], "stdin": "# Title\n\nbody" }

# HTML -> Markdown
{ "args": ["-f", "html", "-t", "markdown"], "stdin": "<h1>Title</h1>" }

# Markdown -> docx (writes to a workspace file)
{ "args": ["-f", "markdown", "-t", "docx", "-o", "out.docx"], "stdin": "..." }

Pandoc reads docx/odt/epub/etc. only when given a file path, not stdin. For those, write the input to the agent's workspace first and pass its path in args.

See https://pandoc.org/MANUAL.html

Tags

4 tags
  • 3.9.0.2
  • 3.9
  • 3
  • latest