@wdprlib/render
    Preparing search index...

    Function renderEmbedBlock

    • Render an [[embed]]...[[/embed]] block element.

      The raw HTML content is validated and sanitized through the full pipeline. On failure, a Wikidot-compatible error block is shown: <div class="error-block">Sorry, no match for the embedded content.</div>.

      The allowlist is taken from ctx.options.embedAllowlist, falling back to DEFAULT_EMBED_ALLOWLIST when not specified. Setting it to null enables Wikidot's "anyiframe" mode (any HTTPS iframe allowed).

      Parameters

      • ctx: RenderContext

        The current render context.

      • data: EmbedBlockData

        Embed block data containing the raw HTML contents.

      Returns void