Re: Chain processors - can we ?
Posted by
David Jencks on
Apr 09, 2020; 4:41pm
URL: https://discuss.asciidoctor.org/Chain-processors-can-we-tp7870p7871.html
No. However the processors are registered has no effect on what stage of parsing they are called during.
David Jencks
On Apr 9, 2020, at 9:38 AM, ch007m [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hi
Can we chain the processors in such a way that BlockProcessor will be processed after the TreeProcessor ?
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