@@ -29,6 +29,8 @@ Or, use the `image` directive.
2929:::
3030```
3131
32+ Note: When using the image directive, if you specify an ` :alt: ` value but no ` :title: ` value, the alt text will automatically be used as the title.
33+
3234:::{image} /syntax/images/observability.png
3335:alt: Elasticsearch
3436:width: 250px
@@ -60,38 +62,39 @@ Here is the same image used inline 
6769```
6870
69- Including a title can be done by supplying it as an optional argument.
71+ When no title is explicitly provided, the alt text is automatically used as the title.
72+
73+ If you want a different title, you can supply it as an optional argument:
7074
7175``` markdown
72- 
76+ 
7377```
7478
7579### Inline image sizing
7680
77- Inline images are supplied at the end through the title argument.
78-
79- This is done to maintain maximum compatibility with markdown parsers
80- and previewers.
81+ Image sizing is specified through the title argument. You can specify just the size without needing to provide a redundant title:
8182
8283``` markdown
83- 
84- 
84+ 
85+ 
8586```
8687
88+ In this case, the alt text will automatically be used as the title, and the size parameters will be applied.
89+
8790` W ` and ` H ` can be either an absolute number in pixels or a number followed by ` % ` to indicate relative sizing.
8891
8992If ` H ` is omitted ` W ` is used as the height as well.
9093
9194``` markdown
92- 
93- 
94- 
95+ 
96+ 
97+ 
9598```
9699
97100
@@ -138,7 +141,7 @@ The image carousel directive builds upon the image directive.
138141
139142:::{image} images/applies.png
140143:alt: Second image description
141- :title: Second image title
144+ ### Title is optional - alt text will be used as title if not specified
142145:::
143146
144147::::
0 commit comments