@asciidoctor/core
    Preparing search index...

    Type Alias ProcessorDslInterface

    DSL interface for configuring a Processor instance. Applied to a processor instance via Object.assign(instance, DslMixin).

    The process property behaves as a setter when called with a single Function argument (stores the process block), or as a passthrough caller otherwise.

    type ProcessorDslInterface = {
        option: (key: string, value: unknown) => void;
        process: (fn: (...args: unknown[]) => unknown) => void;
        processBlockGiven: () => boolean;
    }
    Index

    Properties

    option: (key: string, value: unknown) => void
    • Set a config option.
    process: (fn: (...args: unknown[]) => unknown) => void
    • Register the process function.
    processBlockGiven: () => boolean
    • Returns true if a process function has been registered.