Table of Contents
AsciiDoctor has more things over AsciiDoc plain.
graph LR asciidoc -- is enhanced by --> asciidoctor
sequenceDiagram participant Alice participant Bob Alice->John: Hello John, how are you? loop Healthcheck John->John: Fight against hypochondria end Note right of John: Rational thoughts <br/>prevail... John-->Alice: Great! John->Bob: How about you? Bob-->John: Jolly good!
I run this in a Guard file using ruby:
require 'asciidoctor' require 'erb' guard 'shell' do watch(/^*.asc$/) {|m| p "Converting '#{m[0]}'..." # Asciidoctor.convert_file(m[0], :in_place => true) #`asciidoctor-pdf -r asciidoctor-diagram -a stylesheet="./stylesheet.css" #{m[0]}` `asciidoctor -r asciidoctor-diagram -a stylesheet="./stylesheet.css" #{m[0]}` } end