All notable changes to acdc-cli will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- The
terminal-imagesfeature shows images in terminals that support the kitty graphics protocol, such as kitty, Ghostty and Rex, including remote SVG badges withnetworkand-a allow-uri-read. Images work through the defaultlesspager. Versions oflesswithoutLESSUTFCHARDEFshow<U+10EEEE>instead. convert --images auto|always|neverchooses when terminal output shows images.auto, the default, shows them in kitty, Ghostty and Rex, which it recognizes fromTERM(xterm-kitty,xterm-ghostty,xterm-rex),TERM_PROGRAM(ghostty,rex) or kitty'sKITTY_WINDOW_ID. It doesn't ask the terminal, so keys typed before the pager opens reach the pager. Inside tmux, screen or Zellij, in other terminals, and on Windows,autoshows the alternative text; usealwaysfor another terminal that supports the kitty graphics protocol.nevershows[Image: alt]and the image's link instead.- The
networkfeature also enables remote images in terminal output. - Terminal output has clickable links in Rex, and in Ghostty and kitty when
TERMis generic, such asxterm-256color.
- With a pager, terminal output starts once every input is converted, and a failed input's error shows after you quit the pager.
acdc convertnow fails with an error when it can't write all of its output, for example on a full disk or to a closed pipe. It used to print "Generated ... file" and exit successfully, leaving the output truncated.
0.4.2 - 2026-11-29
- Linux binaries need glibc 2.28 or later, instead of 2.35. They now run on RHEL 8 and 9, Debian 10 and 11, and Ubuntu 20.04.
0.4.1 - 2026-11-28
- Binaries are about 20 MB smaller. The bundled emoji font for PDF output no longer carries glyph data that nothing reads. PDF output doesn't change.
- A panic now exits with status 101 instead of aborting the process.
- Windows binaries no longer need the Visual C++ Redistributable.
0.4.0 - 2026-11-28
- Conversion recognizes underlined (setext) headings by default. This matches
Asciidoctor. The
convert --setextand--enable-setext-compatibilityflags are removed. Drop them from your commands. - The
pre-spec-subsandsetextCargo features are removed. Remove them from your feature lists. The compatibility mode now selects the language rules, and blocksubs=works in every build. - HTML highlighting reads only
highlight-styleandhighlight-css, with giallo theme names. Replacesyntect-styleandsyntect-css. - Manpage dates come from
docdate, notrevdate, as in Asciidoctor. Setdocdateto pin the printed date.
acdc parseexports native JSON from a file or stdin. It accepts--compatibility-mode.--type inlineparses an inline fragment. Builds withasgadd--format upstream-asgand--format acdc-asg-v1. Diagnostics go to stderr as JSON lines.convert,inspect,lintandexecuteaccept--compatibility-mode asciidoctor|draft. The default isasciidoctor. The mode also applies to includes and table cells.convert --force-local-file-xrefsresolves file references such as<<other.adoc#id>>to local anchors, for combined documents. It can also redirect real external references. Asciidoctor doesn't do this.convert --fail-on-warningsexits with status 1 on any warning. It still processes every input and writes all successful output. This is like Asciidoctor's--failure-level WARN.convert --backend pdf --theme FILE --theme-format asciidoctorloads an Asciidoctor PDF 2.3.15 theme. Unsupported settings show warnings.--emit-theme-config FILEwrites the resolved theme as acdc YAML, to pass back with--theme.convert --backend pdf --image-concurrency Nfetches up toNremote images at once. The default is 2.acdc linthas threedocument-structurelints for attribute entries, on by default:attribute-name-not-normalized,header-only-attributeandunset-attribute-value.
- Conversion continues after recoverable parser errors and reports them as
warnings. This includes nonconforming manpage titles, which
--strictstill rejects. - Manpage conversion keeps the
manpagedoctype, even with--doctype articleor--doctype book. - The
tckadapter uses Draft mode and exports a smaller upstream ASG. - Release archives are named
acdc-cli-TARGET.tar.gz(.zipon Windows), with anacdc-cli-TARGET.sha256checksum. Each unpacks to anacdc-cli-TARGETdirectory that also holdsREADME.adocandCHANGELOG.md.
toc2settings now show one warning per document. Use:toc: leftor-a toc=leftinstead.
inspectnow lists block controls in name order and shows the complete video target.acdc lintreports fewer false positives fromcounter-syntax,attribute-url-prefixandone-sentence-per-line. Image checks read the parsed alt text.acdc executecommands can use a[[id]]anchor as their ID. Withsubs=attributes, attribute names in scripts follow the compatibility mode.- Windows release builds are back.
- Footnotes in AsciiDoc table cells show their own text. Description lists keep every term of a shared definition.
- HTML, manpage and terminal tables with mixed widths, such as
cols="2*3,~", keep their numeric proportions, as in Asciidoctor. - Blocks attached to a list item with
+stay inside the item and line up with its text. - Substitutions, character references, cross-references, captions, media links and index terms match Asciidoctor more closely.
[%interactive]checklists have clickable checkboxes.[qanda]lists show as numbered questions, as in Asciidoctor.- Output applies
noheader,nofooterandnofootnotes. Standalone output applieseqnums. - SVG images support
opts=inlineandopts=interactive.data-uriembeds images. Remote images also needallow-uri-readand anetworkbuild. - Links apply
opts=nofollowandopts=noopener. File cross-references userelfileprefixandrelfilesuffix. - Highlighting uses giallo. The default theme is
github-light, orgithub-darkwith:dark-mode:. - IDs, roles and titles can no longer inject HTML.
- Page breaks with
page-layout=portrait|landscapechange the orientation of later pages. Themes can set page size, margins and orientation underpage. - A document can load up to 1,024 image sources and 100 MiB of image data.
Images over a limit show fallback text and a warning, or an error with
--strict. - Typography such as
(C),...and--shows as symbols, also in backticks, as in Asciidoctor PDF. - Nested ordered lists no longer inherit
startor%reversed.
xref:guide.adoc[]uses the localguidelabel when one exists, as in Asciidoctor.- A literal
NAMEheading no longer warns whenmanname-titleis custom or empty. - Nested ordered lists use
a.,i.,A.andI.by level. Wide markers such asviii.stay on the item's line. - The
Generatorcomment now shows the acdc version, not the converter's own.
- Reversed ordered lists count up from
start, with a warning. Markdown can't number down. - Literal angle brackets, backslashes and ampersands stay visible. Block image
title=adds a caption.
- Nested ordered lists use
a.,i.,A.andI.by level. Ordered list markers align to the widest one. - Lines selected with
highlight=keep their background under syntax colors. - A colored inline span, such as monospace, restores the color around it.
0.3.0 - 2026-10-10
--max-total-include-bytes BYTESsets the total selected include text allowed per input document onconvert,lint,inspect, andexecute. The default is 64 MiB. Raise it for large, trusted builds. Safe modes and the 10 MiB per-include limit still apply. Document attributes cannot change this budget. This resource limit deliberately differs from Asciidoctor.- Native binary release packaging for macOS ARM64/x86-64, Linux ARM64/x86-64, and Windows x86-64, with SHA-256 checksums. The binaries include all CLI features, including all five output backends, developer tools, and the TCK adapter. Linux binaries target glibc 2.35 or later.
lintandinspectaccept-S/--safe-mode. Likeconvert, they default to Unsafe and continue expanding local includes. Use Secure to prevent include reads.executecontinues to default to Safe.- A new
lintcommand is available by default. It accepts files or--stdinand Clippy-style lint level flags (--allow/-A,--warn/-W,--deny/-D,--forbid/-F) for the initial Asciidoctor recommended practices lint names. Thedocument-title-authoranddocument-title-revisionlints are available by name but are not part of therecommended-practicesgroup. Counter naming is not exposed as a lint because acdc already warns that counters are unsupported and removes them from output. acdc lintnow renders full colored diagnostics by default, including source snippets, lint IDs, labels, and help text. Use--output-style=compactfor compactline:columndiagnostics without colors or snippets.- Full
acdc lintoutput now ends with lint statistics that count diagnostics by lint ID for the run. acdc lintlevel flags now accept location-scoped overrides for individual lint IDs, such as-A section-title-capitalization@37or-D image-alt-text@10:1-10:80. Multiple locations can be comma-separated in one flag, such as-A delimited-block-minimal-delimiter@977,968. If a scoped override no longer matches any diagnostic, the lint run reports the stale location.--backend pdfis now available when thepdforall-backendsfeature is enabled. It writes.pdffiles by default and writes raw PDF bytes when-o -is selected. PDF runs accept--font-dir,--logo,--title,--watermark,--watermark-timestamp,--page,--theme,--plain,--page-layout,--toc, and--emit-typst; named A3/A4/A5 and common US page sizes can use portrait or landscape output,pdf-page-sizeaccepts custom dimensions,pdf-page-marginsets per-document margins, and--strictmakes unresolved PDF images or logos fail instead of falling back with a warning.- Builds with the
executefeature run listing and source blocks marked with thecommandrole. Use--idor--id-regexto select commands and their dependencies,--dry-runto inspect scripts, and--listto see descriptions.interpreter=overrides the source language;--cwdand repeated--envoptions configure child processes. - Command execution preserves literal script text after includes and conditionals;
subs=attributesorsubs=+attributesexpands document attributes from each command's source position without shell quoting or removing callouts. Missing enabled attributes and incomplete command input fail before any process starts. Dry-run shows the prepared script. Builds withoutpre-spec-subsreject explicitsubssettings. Failed commands block dependents while independent commands continue;--exit-on-failurestops sooner. Source diagnostics identify commands in included files. - The
terminal-emulatorbuild feature renders[terminal]session blocks throughlibghostty-vton the--backend terminalpath. Requires a Zig toolchain to build the bundled library, which is statically linked so the binary stays self-contained. - The
html-terminalfeature forwards terminal-styled HTML rendering to the HTML converter. The:acdc-terminal:document attribute opts terminal-like source blocks into selectable preview rendering; Asciidoctor does not provide this attribute or an equivalent built-in feature. - Explicit
[terminal]blocks now render in HTML output when thehtml-terminalfeature is enabled.[terminal]is the terminal-session path: it renders transcripts throughlibghostty-vtas selectable styled HTML and does not require the:acdc-terminal:source-block opt-in. It supports per-blockcols=androws=attributes and follows the document:dark-mode:setting.[terminal]is an acdc-only block style: Asciidoctor renders it as a plain listing or literal block with the raw text (ANSI escapes included) left as-is. - Converter warnings are now rendered on stderr with the same miette warning styling used for parser warnings.
convert --opennow opens converter-reported output files, including volume-aware manpage outputs such ascmd.1andcmd.7.--variantflag forconvert— pick a backend-specific output style. HTML:standard(default) orsemantic. Markdown:commonmarkorgfm(default).--backend html5sremains an alias for--backend html --variant semanticand rejects--variant. Invalid combinations are rejected up-front, and unavailable backends or variants are omitted from command help.- Timing summary table for multi-file conversions — when
convertis invoked with--timingsand more than one input file, a summary table is printed after the per-file output with parse time, convert time, total per-file time, and wall-clock time across the batch. Single-file output is unchanged. - Parser warnings on stderr — non-fatal parser warnings (section level out of
sequence, unknown table formats, missing includes,
ifdef/endifmismatches, etc.) are now shown on stderr with the same colored source-snippet treatment as errors: a yellow caret, framed source excerpt, span marker, and an optionalhelp:line. Previously these were silent without a tracing subscriber.
execute --listnow prints one bullet per command with labeled ids, interpreters, enclosing section titles, direct dependencies, and optional descriptions. Commands outside sections omit the section title. Quoted values escape control characters so each command stays on one line.
- Warning batches read each referenced source file once, reducing repeated I/O
for documents with many warnings, including commands that use
subs=attributes. lint -D one-sentence-per-linenow rejects description-list values with multiple sentences on one line or a sentence split across lines, including values written after the term's delimiter.lint -D one-sentence-per-lineno longer rejects correctly separated sentences or colon-terminated lead-ins that use inline formatting. Multiple formatted sentences on one source line now fail the check.- Repeated
-aoptions now use the final assignment's precedence, matching Asciidoctor. A later default such as-a name=value@or-a !name=@cancels an earlier override and lets the document assign that attribute. convert -a skip-front-mattermakes captured front matter available to conditionals and includes. HTML conversion warns about excessive source indentation instead of panicking.- Serialized parser output now keeps document attributes as an end-of-header snapshot and reports accepted body set and unset entries in source order.
convert -aattributes now remain locked against matching set or unset entries in the document. The Asciidoctor-compatible@suffix makes a value a document-overridable default, includingname@=value,name=value@, and soft unset forms such as!name=@.- Implied and conversion-only values such as the default
lang=en,outdir, andoutfileare no longer inserted into parser attributes. Converters keep their output fallbacks, while an unresolved attribute reference stays unresolved.outdirandoutfileremain conversion-result metadata even when matching-aoptions are supplied. convertmakes the selected backend's attributes and the converter's default attributes available while the document is parsed, so backend conditionals such asifdef::backend-pdf[]and references tobackend,basebackend,filetype,outfilesuffix, andhtmlsyntaxreflect the chosen output during parsing — consistently for stdin, single-file input, and multi-file batches.- CLI subcommand errors now exit with a non-zero status after rendering the
error message. This includes
acdc lintruns with denied diagnostics. - Missing
convertandlintinputs now produce normal command usage errors, unsupported TCK input types return a regular command failure, and multi-file conversion failures are reported without bypassing top-level error handling. - A warning that points into an
include::d file (or any content shifted by the preprocessor) now renders its source snippet against the correct file instead of aborting withFailed to read contents … OutOfBounds. - Diagnostics for empty files, multi-byte UTF-8 text, and stale or out-of-range locations now clamp to valid source spans instead of producing an invalid source-snippet range.
--no-default-featuresbuilds no longer re-enable parser default features through internal workspace dependencies.- Peak memory during multi-file conversion is now bounded by active work; parsed documents are released after their conversion instead of being retained for the complete input batch.
- Terminal backend warnings are now visible. Parser and converter warnings
emitted during a
--backend terminalrun with a pager were previously written to stderr before the pager took over the screen, leaving them visually buried. They are now deferred until after the pager exits, and the no-pager terminal paths also render converter warnings, including file input converted with--out-file. - A PDF-only build (
--no-default-features --features pdf) now exposes theconvertcommand instead of reporting that the binary has no subcommands. - Default builds now include the runtime
convert --setextcompatibility flag, with--enable-setext-compatibilityretained as an alias. Thehighlightingbuild feature now also enables terminal-backend source highlighting when that backend is selected. inspectnow resolves includes relative to the inspected file, handles long Unicode text without panicking, renders accurate tree relationships, and omits ANSI styling when output is redirected.
0.2.0 - 2026-03-28
- Automatic pager for terminal output - When using
--backend terminaland stdout is a TTY, output is automatically piped through a pager. Defaults toless -FRXon Unix andmoreon Windows. Respects thePAGERenvironment variable for custom pagers. Use--no-pagerto disable, or setPAGER="". On Unix, setsLESSCHARSET=utf-8for proper UTF-8 display. (#311) --embedded/-eflag to output embeddable content without document wrapper elements. Behaviour varies by backend: HTML skips DOCTYPE/html/head/body/content wrapper, manpage skips preamble and NAME section, terminal skips header/authors/ revision info. Matches asciidoctor's--embeddedbehaviour. (#272)- Index catalog rendering for HTML - Documents with
[index]sections now generate a fully populated index catalog, organized alphabetically by first letter with hierarchical nesting for secondary and tertiary terms. Each entry links back to the source location via inline anchors. This goes beyond asciidoctor's HTML backend which leaves index sections empty. The index only renders when it's the last section in the document. - Semantic HTML5 backend —
--backend html5sproduces semantic HTML5 output with proper elements and ARIA roles instead of div-based layout. (#329) --openflag to open generated output files after conversion using the system's default application (e.g., browser for HTML). Ignored when output goes to stdout. (#330)
- Horizontal description lists (
[horizontal]) now render as<table>withhdlistclass instead of<dl>withdlist horizontal, matching asciidoctor output (#270) - List titles (
.My titlesyntax) now render correctly in HTML and manpage output. HTML uses<div class="title">, manpage uses bold formatting, matching asciidoctor behaviour. Terminal output already supported this. (#273)
0.1.0 - 2026-01-02
This is tagged but unreleased in crates.io for now.
- Description lists now support roles (e.g.,
[.stack]) which are applied to the wrapper<div>element, matching asciidoctor behaviour (#264)
- Removed dependency on
acdc-core(purely internal change so no need to bump minor version)