docmd uses standard Markdown syntax for images. Centralise your media assets in the assets/images/ directory within your project source for clean, consistent references.


Sizing
Apply a size class using the { } attribute syntax. Three predefined sizes are available.
{ .size-small }
{ .size-medium }
{ .size-large }
Alignment & Decoration
Combine alignment and decoration classes in a single attribute block.
{ .align-centre }
{ .align-right .with-shadow .with-border }
Figure Captions
Use the standard HTML5 <figure> element for precise, accessible image captioning.
<figure>
<img src="/assets/diagram.png" alt="Cloud Infrastructure Diagram">
<figcaption>Figure 1.1: Core System Infrastructure Architecture.</figcaption>
</figure>
Image Galleries
Wrap multiple figures in a div.image-gallery to produce a responsive, balanced grid.
<div class="image-gallery">
<figure>
<img src="/assets/screen1.jpg" alt="User Dashboard View">
<figcaption>Live Performance Monitor</figcaption>
</figure>
<figure>
<img src="/assets/screen2.jpg" alt="Configuration Panel View">
<figcaption>Project Global Settings</figcaption>
</figure>
</div>
Lightbox Zoom
When mainScripts is active, docmd automatically applies a full-screen zoom effect to any image tagged with the .lightbox class or placed inside a gallery.
{ .lightbox }
Always provide descriptive alt text for every image. Meaningful alt text is a direct, high-fidelity signal for AI agents parsing the llms.txt stream and improves accessibility for screen reader users.