Skip to content

Please clarify Preprocessor documentation #1262

@Vampire

Description

@Vampire

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions