Pandoc
A document converter with LaTeX, for a skill that has to produce a file, not just a plan for one.
- document
- testing
Run it
briq_run({
recipe: "pandoc",
params: {
"size": "small",
"diskGb": 1
},
wait: true
})curl -X POST https://api.briq.cloud/v1/briqs \
-H "Authorization: Bearer $BRIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipe": "pandoc",
"params": {
"size": "small",
"diskGb": 1
},
"wait": true
}'
# → { "briqs": [{ "id": "bq_…", … }], "outputs": { "PANDOC_HOST": "…" }, … }
# ... when done, for each briq id
curl -X DELETE https://api.briq.cloud/v1/briqs/<id> \
-H "Authorization: Bearer $BRIQ_API_KEY"Parameters
| Name | Type | Options | Default |
|---|---|---|---|
| size | enum | small, medium, large | "small" |
| diskGb | number | — | 1 |
Outputs
Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.
- PANDOC_HOST
- pandoc.<stack>.internal
- WORKDIR
- /work
What it runs
| Briq | Image | Ports | Size | Volume |
|---|---|---|---|---|
| pandoc | pandoc/latex:latest | — | small | 1 GB at /work |
When to use it
- The agent must produce a PDF, a DOCX or a deck and has nothing to convert with.
- You want LaTeX-quality typesetting, not a browser's print-to-PDF.
- Many conversions in one session, without a cold start each time.
Tips
- Files in and out:
briq_files_putto/work/input.md,briq_execwithpandoc /work/input.md -o /work/output.pdf, thenbriq_files_get/work/output.pdf. - Unicode or custom fonts: add
--pdf-engine=xelatex. - No ports: everything goes through
briq_execand the file tools. - Large inputs:
/workis a volume that starts small; passdiskGbfor more. Set it when the briq is created, and it counts toward your plan's disk.