# Pandoc

Command\-line document converter and Haskell library for structured publishing formats\.

ID: Q629 · Revision: 677

Type: software · License: GPL\-2\.0\-or\-later; bundled components have compatible licenses[^license] · Status: active

Website: https://pandoc.org/



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\.[^home]

## 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\.[^start]

## Transformations and citations

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\.[^filters][^home]

## 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\.[^manual][^home]

## 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\.[^install]

## 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\.[^manual]

## 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\.[^license][^install]

## Substitution considerations

Pandoc can substitute for the static conversion portion of [Quarto](/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\.[^home][^quarto]

## Capabilities and substitutions

### Structured format conversion — supported

Reads and writes multiple document formats; the published list distinguishes input from output support\.[^home]

Use case: Automating structured document conversion and static publication output · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Exact layout preservation — limited

The intermediate model prioritizes structure; richer formatting and complex elements may be lost\.[^manual]

Use case: Automating structured document conversion and static publication output · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### PDF generation — limited

Uses an external PDF engine and its dependencies rather than a self\-contained renderer\.[^install]

Use case: Automating structured document conversion and static publication output · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Complete sandbox isolation — unsupported

The command\-line sandbox does not constrain filters or PDF\-engine I/O\.[^manual]

Use case: Automating structured document conversion and static publication output · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for Quarto](/quarto) — limited

Can cover static Markdown\-to\-document conversions when integrated computation, cross\-references and project publishing are unnecessary; Quarto itself builds on Pandoc\.[^home][^quarto]

Use case: Automating structured document conversion and static publication output · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^home]: [Pandoc overview](<https://pandoc.org/>) — Directional format list; citations, mathematics and library (vendor; retrieved 2026-10-07T13:02:23.758Z)

[^manual]: [Pandoc user guide](<https://pandoc.org/MANUAL.html>) — Description; Creating a PDF; \-\-sandbox; A note on security (vendor; retrieved 2026-10-07T13:02:23.758Z)

[^start]: [Getting started with Pandoc](<https://pandoc.org/getting-started.html>) — Command\-line interface; text editor workflow; standalone output (vendor; retrieved 2026-10-07T13:02:23.758Z)

[^filters]: [Pandoc filters](<https://pandoc.org/filters.html>) — Reader/AST/writer pipeline; Lua and JSON filters (vendor; retrieved 2026-10-07T13:02:23.758Z)

[^install]: [Installing Pandoc](<https://pandoc.org/installing.html>) — Windows, macOS and Linux packages; static Lua module limitation; PDF dependencies (vendor; retrieved 2026-10-07T13:02:23.758Z)

[^license]: [Pandoc copyright](<https://github.com/jgm/pandoc/blob/main/COPYRIGHT>) — GPL version 2 or later; compatible component licenses (vendor; retrieved 2026-10-07T13:02:23.758Z)

[^quarto]: [Quarto overview](<https://quarto.org/>) — Dynamic documents; scientific Markdown; websites and books (vendor; retrieved 2026-10-07T13:02:23.758Z)

Source revision: https://substitutefor.net/entities/Q629?revision=677
