wdpr
    Preparing search index...
    • Render an image element with optional link wrapper and alignment container.

      Processing steps:

      1. Resolve the image source to a URL via ctx.resolveImageSource().
      2. Sanitize user-supplied attributes.
      3. Build the <img> tag with safe attributes.
      4. Optionally wrap in an <a> tag if a link target is specified.
      5. Optionally wrap in a <div class="image-container ..."> for alignment.

      Dangerous URLs are replaced with #invalid-url. Local paths blocked by settings cause the entire image to be silently dropped.

      Parameters

      • ctx: RenderContext

        The current render context.

      • data: ImageData

        Image element data with source, attributes, optional link, and alignment.

      Returns void