Closed ysb33r closed 9 years ago
Basic inline image:
![This is the Image Caption](images/NameOfImage.png)
Basic block image:
!["This is the Image Caption"](images/NameOfImage.png "alttext")
For block images it is also necessary to support the appropriate attributes
{width=60%,float=left}
![This is the Image Caption](images/NameOfImage.png)
The valid values for float
are:
inside
outside
left
right
These will be taken from the float
metadata on the image. If an illegal value is found it will be logged, but processing will continue. Also need to handle this is it comes as part of a [http://asciidoctor.org/docs/user-manual/#positioning-roles](positioning role) i.e. [.right.text-center]
.Other things to do:
:figure-caption!:
will be ignoredleanpub="width 60%"
will translate to {width=60%}
on block images.What I am not sure about. Is it possible to center the image, when align="center"
is in the metadata.
See https://leanpub.com/help/manual#leanpub-auto-how-to-insert-an-image
See http://asciidoctor.org/docs/user-manual/#images