@asciidoctor/core
    Preparing search index...

    Function create

    • Create a new Registry, optionally pre-populated with a named block.

      When a block is provided it is stored as a group and re-executed on every activation, making the registry safe to reuse across multiple conversions. Without a block, any extensions registered directly on the returned registry (e.g. registry.preprocessor(fn)) are stored in transient state that is cleared on every activation — those registrations will be lost from the second conversion onwards. Prefer the block form when the registry may be reused.

      Parameters

      • Optionalname: string

        Optional name for the group; auto-generated if omitted.

      • Optionalblock: Function

        Optional function to register as the group.

      Returns Registry