Updated image guide (#5823)

Added another option how markdown_captions extension can be used to show image alt text as caption.
This commit is contained in:
pana-exfo 2023-08-21 19:16:16 +03:00 committed by GitHub
parent 92be65e577
commit ac30daaa9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,21 @@ but it's always possible to use the [Markdown in HTML] extension with literal
</figure> </figure>
</div> </div>
Another option is to use [Markdown captions](https://github.com/Evidlo/markdown_captions) extension
which converts images with alt text to \<figure\> with \<figcaption\>.
``` html title="Image with caption"
![Image caption](https://dummyimage.com/600x400/){ width="300" }
```
<div class="result">
<figure>
<img src="https://dummyimage.com/600x400/f5f5f5/aaaaaa?text=%20Image%20" width="300" />
<figcaption>Image caption</figcaption>
</figure>
</div>
### Image lazy-loading ### Image lazy-loading
Modern browsers provide [native support for lazy-loading images][lazy-loading] Modern browsers provide [native support for lazy-loading images][lazy-loading]