Asciidoctorj: API to create a valid AST from scratch
Is there a way to create a valid Asciidoctor-AST from scratch in Java?
I have seen some methods in org.asciidoctor.extension.Processor…
What if I am not inside a Macro? It is allowed to instantiate a Processor class in a simple main method? How should I initialize the Asciidoctor engine?
In addition, I need to create a separate document (for the root node). Processor#createDocument() seems to be for inner-document, not to create a root document.