Images

The image pipeline rewrites raster <img> tags into a responsive <picture> with AVIF, WebP, and fallback sources, srcsets sized for the article width, and a tiny LQIP background that holds the aspect ratio while the picture loads. SVG files referenced by <img> are inlined into the document.

Standalone images

A bare <img> tag is enough — no shortcode or template directive needed. The pipeline picks it up at build time.

Lingo4g Explorer screenshot

Figures with captions

Wrap the image in <figure> for a caption and, in this theme, click-to-zoom. The full-viewport view animates with the View Transitions API where supported.

Lingo4g Explorer
Lingo4g Explorer — click to zoom.

Light and dark variants

Provide two <img> tags marked light and dark. The active theme decides which one is visible — no JavaScript, no flicker.

Lingo3g Workbench, light theme Lingo3g Workbench, dark theme
Workbench shown in the page's current theme.

Inline SVG

An <img> pointing at an SVG file is replaced with the file's <svg> element inlined into the document, so CSS variables and theme switches reach into the diagram itself.

Isometric diagram of stacked blocks
Inlined SVG — selectable, themable, zoomable.