This can be done better by setting some of the options for Asciidoctor, see the Java integration lib (or the other class in this project) for more information.