Login  Register

Chain processors - can we ?

Posted by ch007m on Apr 09, 2020; 4:38pm
URL: https://discuss.asciidoctor.org/Chain-processors-can-we-tp7870.html

Hi

Can we chain the processors in such a way that BlockProcessor will be processed after the TreeProcessor ? The reason why I'm asking this question is because I would like to pospulate a hashMap using TreeProcessor and reuse it with the BlockProcessor

Example:
        // Include the Table extension
        asciidoctor.javaExtensionRegistry()
                .treeprocessor(FindRolesTreeProcessor.class)
                .block(GenerateTableBlockProcessor.class);
...

Best

Charles



Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard