Asciidoctorj: API to create a valid AST from scratch

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Asciidoctorj: API to create a valid AST from scratch

Jeremie Bresson
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.