local/tools
docs / Single executable / v1.0.4

AsciiDoc Converter

Convert AsciiDoc documents and projects to self-contained HTML5, DocBook 5 or Markdown with Asciidoctor, offline.

Install

  • install
    irm https://raw.githubusercontent.com/chayprabs/localtools/main/asciidoc-converter/install.ps1 | iex
  • update
    localtools-asciidoc-converter update
  • remove
    localtools-asciidoc-converter uninstall

Opens at http://127.0.0.1:47132 in your browser. Run localtools-asciidoc-converter --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.

Direct download

PlatformFileSize
Linux ARM64asciidoc-converter-1.0.4-linux-arm64.zip42.4 MB
Linux x64asciidoc-converter-1.0.4-linux-x64.zip42.1 MB
macOS Apple Siliconasciidoc-converter-1.0.4-macos-arm64.zip31.8 MB
macOS Intelasciidoc-converter-1.0.4-macos-x64.zip33.5 MB
Windows x64asciidoc-converter-1.0.4-windows-x64.zip44.8 MB

SHA-256 checksums are in the release notes; the install scripts verify them for you.

See it

How to use

  1. Run localtools-asciidoc-converter; the page opens at http://127.0.0.1:47132.
  2. Paste AsciiDoc, or drop .adoc files and images, open a whole folder, or drop a zip; include:: and image:: paths keep working.
  3. Pick the output (HTML page, HTML body, DocBook 5, Markdown) and options such as table of contents, section numbers, icons, code theme and STEM; the preview updates as you type.
  4. Click a warning to open its file and select the line (including archive sources up to 2 MiB), then Download, Copy, or Print / PDF. Remote media warnings mean opening the export may load those URLs.
  5. From a terminal: localtools-asciidoc-converter convert doc.adoc -o doc.html --attribute toc

FAQ

Is the HTML the same as Asciidoctor's?

Yes. It is Asciidoctor.js 4.1.1 (equivalent to Asciidoctor 2.0.26); 527 HTML5 and DocBook comparisons across 267 real documents match after removing the default Google Fonts import. Local images, the default stylesheet, highlight.js colours, Font Awesome icons and math are embedded. Remote media and favicon URLs remain with a warning: opening the export may load them; the preview blocks them.

Can a document read files outside my project or reach the network?

No. Conversion runs in Asciidoctor's SAFE mode: includes, images, stylesheets and docinfo come only from the main document's folder and below, absolute and .. paths are confined to it, URI includes and remote images are never fetched, and the preview blocks all network loads.

How do I get a PDF?

asciidoctor-pdf is a Ruby tool, so it is not bundled. Use Print / PDF on the page, which prints the preview with your browser's Save as PDF.

What does Markdown support?

Markdown is produced by downdoc after Asciidoctor resolves include:: and ifdef::. It covers headings, lists, tables, admonitions, code blocks with callouts, images and links; layout-only features such as complex table spans have no Markdown equivalent.

What are the limits?

Uploads up to 64 MiB total including multipart framing, 5,000 files, zips expanding to 256 MiB, and 64 MiB of output. An exact 64 MiB pasted document exceeds the framed upload limit and returns 413. The server gives each conversion 60 s in its own process (two at a time); the CLI has no deadline. Archive diagnostic sources up to 2 MiB of encoded text can open in the editor.