software · Q629
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]
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]
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.[1][4]
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]
Capabilities & limitations
Structured format conversion
supportedReads and writes multiple document formats; the published list distinguishes input from output support.[1]
Automating structured document conversion and static publication output · Windows, macOS, Linux · Version, build and integration requirements apply
1 source · check evidence
Directional format list; citations, mathematics and library
vendor · checked 2026-10-07Exact layout preservation
limitedThe intermediate model prioritizes structure; richer formatting and complex elements may be lost.[2]
Automating structured document conversion and static publication output · Windows, macOS, Linux · Version, build and integration requirements apply
1 source · check evidence
Description; Creating a PDF; --sandbox; A note on security
vendor · checked 2026-10-07PDF generation
limitedUses an external PDF engine and its dependencies rather than a self-contained renderer.[5]
Automating structured document conversion and static publication output · Windows, macOS, Linux · Version, build and integration requirements apply
1 source · check evidence
Windows, macOS and Linux packages; static Lua module limitation; PDF dependencies
vendor · checked 2026-10-07Complete sandbox isolation
unsupportedThe command-line sandbox does not constrain filters or PDF-engine I/O.[2]
Automating structured document conversion and static publication output · Windows, macOS, Linux · Version, build and integration requirements apply
1 source · check evidence
Description; Creating a PDF; --sandbox; A note on security
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Quarto for Automating structured document conversion and static publication output
limitedCan cover static Markdown-to-document conversions when integrated computation, cross-references and project publishing are unnecessary; Quarto itself builds on Pandoc.[1][7]
Windows, macOS, Linux · Version, build and integration requirements apply
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
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 677 | 2026-10-13 00:27:17 | /* wbeditentity-create-item:0| */ sf:4b74d10e-be7a-4902-87f0-969df2db5ec2:v1 | Add Pandoc with structural-conversion limits, external PDF engines and sandbox boundaries. Quarto assessment is limited to static conversion, not its integrated | attribution: /proposals/4b74d10e-be7a-4902-87f0-969df2db5ec2 |