Asciidoctor parses AsciiDoc into a document model and converts it to HTML, DocBook, man pages, PDF, EPUB, and other outputs. It runs as a Ruby gem with a command-line interface.
Overview
Asciidoctor is a text processor focused on the AsciiDoc markup language. It reads AsciiDoc sources, builds an internal document model, and emits publishable formats, with built-in converters for HTML 5, DocBook 5, and man pages plus additional backends through companion gems such as PDF and EPUB 3.
The default HTML path ships with a stylesheet and optional integrations for icon fonts, syntax highlighting engines, and STEM content via MathJax. Authors can extend processing through an ecosystem of diagram plugins, build tool integrations for Maven and Gradle, JavaScript and JVM ports, and browser preview extensions.
Installation is available through Rubygems, Linux distribution packages, Homebrew and MacPorts on macOS, Windows setup via Chocolatey or RubyInstaller, Docker images, and Bundler-managed projects. The asciidoctor CLI converts files in place, for example turning README.adoc into HTML alongside the source.
Related ports let teams run the same AsciiDoc pipeline on the JVM through AsciidoctorJ or in JavaScript environments through Asciidoctor.js, so documentation builds are not limited to CRuby runtimes. Asciidoctor is the maintained successor to the older AsciiDoc.py processor.
Key features
- AsciiDoc to HTML and DocBook conversion
- Built-in man page backend
- Default HTML stylesheet and theming
- Syntax highlighting integrations
- PDF and EPUB via extension gems
- Command-line asciidoctor tool
- Docker and OS package installs
- JVM and JavaScript processor ports
Use cases
- Technical documentation publishing
- AsciiDoc to HTML site generation
- Man page generation from AsciiDoc
- CI documentation build pipelines