Emits a rationalized, theme-compatible markup: the Wikidot class names
gallery-box / gallery-item <size> / with-lb are kept, but the
legacy table wrapper is replaced with a plain <figure> per item.
with-lb marks lightbox targets (see initGallery in
@wdprlib/runtime): anchors whose href is the image itself, i.e.
items without an explicit link and without a * new-window prefix.
data-viewer="false" on the box disables the lightbox
(viewer="no").
Items whose source is a dangerous URL are skipped; a dangerous link
is ignored (the item then links to its own image).
Renderer for Wikidot
[[gallery]]elements.Emits a rationalized, theme-compatible markup: the Wikidot class names
gallery-box/gallery-item <size>/with-lbare kept, but the legacy table wrapper is replaced with a plain<figure>per item.with-lbmarks lightbox targets (seeinitGalleryin@wdprlib/runtime): anchors whose href is the image itself, i.e. items without an explicitlinkand without a*new-window prefix.data-viewer="false"on the box disables the lightbox (viewer="no").