-
Notifications
You must be signed in to change notification settings - Fork 174
Description
The docs at https://docs.asciidoctor.org/asciidoctorj/latest/extensions/preprocessor/ suggest that a preprocessor is working like I would expect it to and that it is meant for reading all lines and transforming them before the syntax is then further processed and parsed.
The example also shows exactly that.
But @mojavelinux in Zulip said quite the opposite and the canonical preprocessor page at https://docs.asciidoctor.org/asciidoctor/latest/extensions/preprocessor/ also objects.
You should not read from the reader in a preprocessor in its current state as it will break things further on and even using lines() only patially works as the preprocessor extension is only called on the main document but not on any included documents.
Please update the docs to make it clear that what is currently described and also shown in the example is not what you should do.