Asciidoctorj: API to create a valid AST from scratch
Posted by Jeremie Bresson on Nov 21, 2017; 2:52pm
URL: https://discuss.asciidoctor.org/Asciidoctorj-API-to-create-a-valid-AST-from-scratch-tp6031.html
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.
Any idea?
Thank you in advance.