Figures
Images wrapped in figure elements with captions
Figures
Figures wrap images in semantic <figure> elements with optional captions. Use them when an image needs a visible description below it.
Basic Figure
Syntax:
:::figure

Caption text here.
:::
MarkdownFigure with Title
:::figure[Figure 1: Title]

Caption text.
:::
MarkdownBest Practices
- Always include descriptive alt text for accessibility
- Use captions to explain what the image shows, not just repeat the alt text
- Use numbered figure titles for technical documentation that references images in the text
- Store images in the
assets/directory of your course