@@ -5712,29 +5712,37 @@ The link text will be used as the image's alt text:
57125712
57135713An image with nonempty alt text, occurring by itself in a
57145714paragraph, will be rendered as a figure with a caption. The
5715- image's alt text will be used as the caption.
5715+ image's description will be used as the caption.
57165716
5717- 
5717+ 
57185718
57195719How this is rendered depends on the output format. Some output
57205720formats (e.g. RTF) do not yet support figures. In those
57215721formats, you'll just get an image in a paragraph by itself, with
5722- no caption. For LaTeX output, you can specify a [figure's
5723- positioning](https://www.overleaf.com/learn/latex/Positioning_images_and_tables#The_figure_environment)
5724- by adding the `latex-placement` attribute.
5725-
5726- {latex-placement="ht"}
5722+ no caption.
57275723
57285724If you just want a regular inline image, just make sure it is not
57295725the only thing in the paragraph. One way to do this is to insert a
57305726nonbreaking space after the image:
57315727
5732- \
5728+ \
57335729
57345730Note that in reveal.js slide shows, an image in a paragraph
57355731by itself that has the `r-stretch` class will fill the screen,
57365732and the caption and figure tags will be omitted.
57375733
5734+ To specify an alt text for the image that is different
5735+ from the caption, you can use an explicit attribute (assuming the
5736+ `link_attributes` extension is set):
5737+
5738+ {alt="description of image"}
5739+
5740+ For LaTeX output, you can specify a [figure's
5741+ positioning](https://www.overleaf.com/learn/latex/Positioning_images_and_tables#The_figure_environment)
5742+ by adding the `latex-placement` attribute.
5743+
5744+ {latex-placement="ht"}
5745+
57385746### Extension: `link_attributes` ###
57395747
57405748Attributes can be set on links and images:
0 commit comments