@wdprlib/runtime
    Preparing search index...

    Function initGallery

    • Initialize gallery lightbox behavior within the given root element.

      Parameters

      • root: HTMLElement

        The root DOM element containing rendered Wikidot markup.

      Returns ModuleCleanup

      A cleanup handle whose destroy() method removes listeners, the dialog element, and the injected stylesheet.