/
๐Ÿ“

AsciiDoc-AsciiDoc Converter

https://asciidoc.org/
asciidocclishell
On this page
  • Asciidoctor
  • Troubleshooting

AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs. AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, man page.

Asciidoctor

Asciidoctor is a fast, open source text processor and publishing toolchain for converting AsciiDoc content to HTML5, DocBook, PDF, and other formats. Asciidoctor is written in Ruby and runs on all major operating systems.

It can work with pandoc

sh
brew install asciidoctor
sh
asciidoctor --backend docbook --out-file - $INPUT_ADOC| \
pandoc --from docbook --to docx --output $INPUT_ADOC.docx \
--highlight-style espresso
# Command for PDF output
asciidoctor-pdf -a data-uri -r asciidoctor-diagram -r asciidoctor-bibtex er.adoc
# Command for HTML output
asciidoctor -a data-uri -a -r asciidoctor-diagram -r asciidoctor-bibtex er.adoc

Troubleshooting

sh
sudo chmod 775 /usr/local/bin
Edit this page
logo
Code-related notes and snippets