Use gem
to install asciidoctor. Follow the instructions in the documentation section of the asciidoc website.
Note: I had to quit the current terminal session and start a new one after which the asciidoctor
command became available.
This can be done using kramdown
. I followed the instructions on one of Matthew Setter blog articles.
sudo gem install kramdown-asciidoc
After this, I could convert a markdown file named 2020-03-10-calculating-pi-concurrently.md
in a folder named posts
with the following command:
kramdoc --format=GFM \
--output=posts/2020-03-10-calculating-pi-concurrently.adoc \
--wrap=ventilate \
posts/2020-03-10-calculating-pi-concurrently.md
For IntelliJ users, there's the AsciiDoc
plugin.
For visualisation, run asciidoctor
on your source to generate HTML5.