AsciiDoc FAQ: What is the AsciiDoc image syntax?

AsciiDoc FAQ: What is the AsciiDoc image syntax?

The AsciiDoc image syntax looks like this:

image:images/hello.png["Put the HTML ALT text here"]

This example assumes that you have a file named hello.png in a subdirectory named images. Here’s a more complete example that also shows an AsciiDoc image with a title/caption and HTML image “ALT” text:

[[unique_image_id]]
.Put the title/caption text here
image::images/hello.png["Put the ALT text here"]

I suspect that how the caption and ALT text is rendered will depend on your tools/toolchain, but this is the way I use it.