{"schemaVersion":"1.0","record":{"label":"Pandoc","description":"Command-line document converter and Haskell library for structured publishing formats.","aliases":[],"kind":"software","website":"https://pandoc.org/","overview":"Pandoc is a document-conversion program and Haskell library. It reads structured formats such as Markdown, HTML and word-processing documents and writes a range of publishing outputs. Authors can maintain text-oriented sources and produce different delivery formats, with citations, mathematics and customizable transformations where the selected formats support them.","license":"GPL-2.0-or-later; bundled components have compatible licenses","lifecycle":"active","example":false,"features":[{"name":"Structured format conversion","status":"supported","detail":"Reads and writes multiple document formats; the published list distinguishes input from output support.","useCase":"Automating structured document conversion and static publication output","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandoc.org/","locator":"Directional format list; citations, mathematics and library","retrievedAt":"2026-10-07T13:02:23.758Z","kind":"vendor"}]},{"name":"Exact layout preservation","status":"limited","detail":"The intermediate model prioritizes structure; richer formatting and complex elements may be lost.","useCase":"Automating structured document conversion and static publication output","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandoc.org/MANUAL.html","locator":"Description; Creating a PDF; --sandbox; A note on security","retrievedAt":"2026-10-07T13:02:23.758Z","kind":"vendor"}]},{"name":"PDF generation","status":"limited","detail":"Uses an external PDF engine and its dependencies rather than a self-contained renderer.","useCase":"Automating structured document conversion and static publication output","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandoc.org/installing.html","locator":"Windows, macOS and Linux packages; static Lua module limitation; PDF dependencies","retrievedAt":"2026-10-07T13:02:23.758Z","kind":"vendor"}]},{"name":"Complete sandbox isolation","status":"unsupported","detail":"The command-line sandbox does not constrain filters or PDF-engine I/O.","useCase":"Automating structured document conversion and static publication output","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandoc.org/MANUAL.html","locator":"Description; Creating a PDF; --sandbox; A note on security","retrievedAt":"2026-10-07T13:02:23.758Z","kind":"vendor"}]}],"alternatives":[],"slug":"pandoc","draftAlternatives":[{"targetSlug":"quarto","status":"limited","detail":"Can cover static Markdown-to-document conversions when integrated computation, cross-references and project publishing are unnecessary; Quarto itself builds on Pandoc.","useCase":"Automating structured document conversion and static publication output","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pandoc.org/","locator":"Directional format list; citations, mathematics and library","retrievedAt":"2026-10-07T13:02:23.758Z","kind":"vendor"},{"url":"https://quarto.org/","locator":"Dynamic documents; scientific Markdown; websites and books","retrievedAt":"2026-10-07T13:02:23.758Z","kind":"vendor"}]}],"evidence":[{"url":"https://pandoc.org/","locator":"Directional format list; citations, mathematics and library","retrievedAt":"2026-10-07T13:02:23.758Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://pandoc.org/","locator":"Directional format list; citations, mathematics and library","retrievedAt":"2026-10-07T13:02:23.758Z","id":"home","title":"Pandoc overview","kind":"vendor"},{"url":"https://pandoc.org/MANUAL.html","locator":"Description; Creating a PDF; --sandbox; A note on security","retrievedAt":"2026-10-07T13:02:23.758Z","id":"manual","title":"Pandoc user guide","kind":"vendor"},{"url":"https://pandoc.org/getting-started.html","locator":"Command-line interface; text editor workflow; standalone output","retrievedAt":"2026-10-07T13:02:23.758Z","id":"start","title":"Getting started with Pandoc","kind":"vendor"},{"url":"https://pandoc.org/filters.html","locator":"Reader/AST/writer pipeline; Lua and JSON filters","retrievedAt":"2026-10-07T13:02:23.758Z","id":"filters","title":"Pandoc filters","kind":"vendor"},{"url":"https://pandoc.org/installing.html","locator":"Windows, macOS and Linux packages; static Lua module limitation; PDF dependencies","retrievedAt":"2026-10-07T13:02:23.758Z","id":"install","title":"Installing Pandoc","kind":"vendor"},{"url":"https://github.com/jgm/pandoc/blob/main/COPYRIGHT","locator":"GPL version 2 or later; compatible component licenses","retrievedAt":"2026-10-07T13:02:23.758Z","id":"license","title":"Pandoc copyright","kind":"vendor"},{"url":"https://quarto.org/","locator":"Dynamic documents; scientific Markdown; websites and books","retrievedAt":"2026-10-07T13:02:23.758Z","id":"quarto","title":"Quarto overview","kind":"vendor"}],"overviewCitations":["home"],"licenseCitations":["license"],"sections":[{"id":"workflow","heading":"Source-oriented publishing","paragraphs":[{"id":"workflow-detail","content":[{"text":"Pandoc is normally used from a terminal rather than a graphical page editor. A source file is maintained in a text editor and converted into a delivery format; a standalone-output option adds the surrounding document structure where needed. This separates content authoring from output generation and supports repeatable conversions without manually rebuilding the same text in several applications."}],"citations":["start"]}]},{"id":"transforms","heading":"Transformations and citations","paragraphs":[{"id":"transforms-detail","content":[{"text":"A reader turns input into an intermediate document tree, and a writer generates the target format. Filters operate between those stages, allowing structured changes to headings, paragraphs or other elements instead of relying only on text substitutions. Lua filters use an embedded interpreter, while JSON filters can be implemented in other languages. Citation and bibliography processing, mathematical content and format-specific output provide additional publishing functions."}],"citations":["filters","home"]}]},{"id":"fidelity","heading":"Compatibility boundaries","paragraphs":[{"id":"fidelity-detail","content":[{"text":"The conversion model is less expressive than some source formats. The guide warns that preserving document structure does not preserve every formatting detail, and complex tables can exceed that model. A supported extension therefore does not promise a lossless round trip. Similarly, output formats are directional: the available writer list should not be mistaken for an equivalent set of importers."}],"citations":["manual","home"]}]},{"id":"runtime","heading":"Platforms and dependencies","paragraphs":[{"id":"runtime-detail","content":[{"text":"Official installation routes cover Windows, macOS and Linux, with package and standalone distribution choices. PDF output requires another engine, commonly a LaTeX installation, and may need its packages or fonts. The installation guide also notes that supplied statically linked builds cannot use Lua filters depending on C-language Lua modules. A working converter binary therefore does not establish that every optional filter or output pipeline is ready."}],"citations":["install"]}]},{"id":"security","heading":"Untrusted documents","paragraphs":[{"id":"security-detail","content":[{"text":"The command-line sandbox restricts reader and writer file access but does not contain filters or PDF-engine operations. Generated HTML also requires sanitization before treating untrusted input as safe browser content. These are integration boundaries, not a claim that conversion is inherently isolated. No conversion service or executable was run for this research."}],"citations":["manual"]}]},{"id":"license","heading":"Licensing","paragraphs":[{"id":"license-detail","content":[{"text":"Pandoc's own code is generally released under GPL version 2 or later, with compatible licenses identified for bundled components. This is an open-source software license; external typesetting engines, filters and source-document materials remain separately relevant when assembling or distributing a publishing workflow."}],"citations":["license","install"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"Pandoc can substitute for the static conversion portion of "},{"text":"Quarto","targetSlug":"quarto"},{"text":" when the requirement is to turn structured text into documents or slides. Quarto already uses Pandoc Markdown and adds computational execution, cross-references and project-level publishing. Direct Pandoc use can be sufficient for a narrower conversion pipeline, but shared output formats do not make it a drop-in replacement for an existing computational project."}],"citations":["home","quarto"]}]}]},"id":"Q629","revision":677,"updatedAt":"2026-10-13T00:27:17Z","sourceUrl":"https://substitutefor.net/entities/Q629?revision=677"}}