asciidoctor / asciidoctor-leanpub-converter

A backend for AsciidoctorJ to generate Leanpub-flavoured Markdown
Apache License 2.0
16 stars 9 forks source link

Support Images #15

Closed ysb33r closed 9 years ago

ysb33r commented 9 years ago

See https://leanpub.com/help/manual#leanpub-auto-how-to-insert-an-image

See http://asciidoctor.org/docs/user-manual/#images

ysb33r commented 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:

Other things to do:

What I am not sure about. Is it possible to center the image, when align="center" is in the metadata.