Pandoc Command-line document converter and Haskell library for structured publishing formats.
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.[1]
Contents Source-oriented publishing 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.[3]
Compatibility boundaries 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.[1] [2]
Platforms and dependencies 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.[5]
Untrusted documents 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.[2]
Licensing 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.[5] [6]
Substitution considerations Pandoc can substitute for the static conversion portion of Quarto 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.[1] [7]
References Pandoc overview Directional format list; citations, mathematics and library
vendor · retrieved 2026-10-07 Pandoc user guide Description; Creating a PDF; --sandbox; A note on security
vendor · retrieved 2026-10-07 Getting started with Pandoc Command-line interface; text editor workflow; standalone output
vendor · retrieved 2026-10-07 Pandoc filters Reader/AST/writer pipeline; Lua and JSON filters
vendor · retrieved 2026-10-07 Installing Pandoc Windows, macOS and Linux packages; static Lua module limitation; PDF dependencies
vendor · retrieved 2026-10-07 Pandoc copyright GPL version 2 or later; compatible component licenses
vendor · retrieved 2026-10-07 Quarto overview Dynamic documents; scientific Markdown; websites and books
vendor · retrieved 2026-10-07 Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.