AsciiDoc to HTML, DOCX and JSON.
One binary. No Ruby.

adoctra is an AsciiDoc processor written in Rust: a command-line tool, a library and WASM bindings for editors. It aims at the behavior of Asciidoctor 2.0.23.

cargo install adoctra-cli

Version 0.0.4 — an early release. The API and the output may still change.

What it does

Familiar command line

adoctra follows the asciidoctor command, so existing build scripts mostly keep working:

adoctra document.adoc                     # document.html next to the input
adoctra --to docx document.adoc           # document.docx
adoctra -a toc -a icons=font -n book.adoc # attributes, numbered sections
adoctra -r asciidoctor-diagram doc.adoc   # diagrams

See the command line reference for every option.

Tested against real documentation

The test corpus includes the documentation of Asciidoctor, Spring, Quarkus, Gradle, Hibernate ORM, JUnit and others. Document structure, diagnostics and command-line behavior are compared with Asciidoctor 2.0.23; HTML is compared visually. Known differences are listed openly.