# Asciidoctor

AsciiDoc processor with built\-in HTML, DocBook and manual\-page converters\.

ID: Q756 · Revision: 804

Type: software · License: MIT[^home] · Status: active

Website: https://asciidoctor.org/



Asciidoctor is an open\-source processor for AsciiDoc, a plain\-text document markup language\. Its core converts source documents into HTML5, DocBook 5 and manual pages, while additional converters extend the publishing pipeline\. It can be used from a command line or integrated into another application\.[^home]

## Processing and integration

The command\-line interface handles file conversion, while an API lets an application load a document and convert it separately\. This exposes a parsed document model for integration rather than requiring the application to treat conversion as an opaque shell command\. Choosing an API also requires attention to output options and processing permissions; the same source can behave differently under different safe\-mode settings\.[^api][^safe]

## Core and additional converters

The core distribution supplies three output converters\. PDF and EPUB are separate additions, so installing the processor alone does not establish a complete print or ebook workflow\. Ruby is the original implementation; AsciidoctorJ and Asciidoctor\.js provide JVM and JavaScript routes\. The project lists Windows, macOS and Linux availability, but integrations and their dependencies still need to match the chosen runtime\.[^home]

## Moving legacy content

The official migration guide specifically addresses AsciiDoc\.py 8\.6\. Although the basic conversion command has an equivalent, legacy syntax and configuration are not universally interchangeable\. Compatibility mode is a deprecated transitional aid, not a permanent compatibility guarantee\. Configuration\-file filters are replaced by an extension API, and custom Python extensions need rewriting for the selected processor\. HTML output also defaults to HTML5 rather than the older processor's XHTML 1\.1\.[^migration]

## Trust boundaries

The command line defaults to UNSAFE, whereas the API defaults to SECURE and disables includes and URI retrieval\. SAFE permits includes within the source parent directory but does not validate symbolic\-link targets\. Extensions may not honor these controls\. Crucially, none of the modes sanitizes generated HTML: passthrough content can survive conversion, so embedding untrusted output requires a separate sanitization step\.[^safe]

## License and substitution

The processor is MIT\-licensed\. It can substitute for [Pandoc](/pandoc) when the specific requirement is publishing AsciiDoc as HTML or DocBook\. This is a narrower assessment than replacing a general document converter: selecting Asciidoctor does not provide Pandoc's many other input readers\. Existing templates, extensions and build commands should be evaluated as part of migration rather than assumed compatible because both tools produce the same file extension\.[^home][^pandoc][^migration]

## Capabilities and substitutions

### AsciiDoc conversion — supported

Core outputs include HTML5, DocBook 5 and manual pages\.[^home]

Use case: Publish AsciiDoc technical documentation to HTML or DocBook · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### PDF and EPUB generation — limited

Additional converter gems provide these outputs; they are not built into core\.[^home]

Use case: Publish AsciiDoc technical documentation to HTML or DocBook · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Legacy processor migration — limited

AsciiDoc\.py 8\.6 migration can require syntax, configuration and extension changes\.[^migration]

Use case: Publish AsciiDoc technical documentation to HTML or DocBook · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Output sanitization by safe mode — unsupported

Safe modes restrict processing actions but do not sanitize generated HTML\.[^safe]

Use case: Publish AsciiDoc technical documentation to HTML or DocBook · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for Pandoc](/pandoc) — limited

Can replace the AsciiDoc\-to\-HTML or DocBook portion of a publishing pipeline; this does not replace Pandoc's broader input formats or filter architecture\.[^home][^pandoc]

Use case: Publish AsciiDoc technical documentation to HTML or DocBook · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^home]: [Asciidoctor overview](<https://asciidoctor.org/>) — Built\-in converters, requirements, ecosystem and copyright/license (vendor; retrieved 2026-10-07T13:32:27Z)

[^safe]: [Safe modes](<https://docs.asciidoctor.org/asciidoctor/latest/safe-modes/>) — Security assumptions; UNSAFE, SAFE and SECURE (vendor; retrieved 2026-10-07T13:32:27Z)

[^migration]: [Migration from AsciiDoc\.py](<https://docs.asciidoctor.org/asciidoctor/latest/migrate/asciidoc-py/>) — 8\.6 scope, compatibility mode, configuration and custom extensions (vendor; retrieved 2026-10-07T13:32:27Z)

[^api]: [Asciidoctor API](<https://docs.asciidoctor.org/asciidoctor/latest/api/>) — Loading and converting documents (vendor; retrieved 2026-10-07T13:32:27Z)

[^pandoc]: [Pandoc formats](<https://pandoc.org/>) — AsciiDoc, HTML and DocBook input/output formats (vendor; retrieved 2026-10-07T13:32:27Z)

Source revision: https://substitutefor.net/entities/Q756?revision=804
