wdpr
    Preparing search index...

    Browser-side runtime for Wikidot rendered HTML.

    After @wdprlib/render produces static HTML, this package brings it to life by attaching event listeners for interactive elements: collapsibles, tab views, table-of-contents scrolling, footnote back-references, rating widgets, etc.

    import { initWdprRuntime } from "@wdprlib/runtime";

    const runtime = initWdprRuntime({ root: document.getElementById("content")! });
    // later, to clean up:
    runtime.destroy();

    References

    HTML_BLOCK_RESIZE_SCRIPT → HTML_BLOCK_RESIZE_SCRIPT
    RateResult → RateResult
    RuntimeOptions → RuntimeOptions
    WdprRuntime → WdprRuntime

    Runtime

    initWdprRuntime