asciidoctor-epub3
asciidoctor-epub3 copied to clipboard
Images cannot float in EPUB rendering
When trying to align an image with text is not possible, I have tried all the possible options without success Example code:
== Test section
.Title for image
image::einstein-relatividad.jpg[,340,role="related thumb left"]
Lorem Ipsum is simply dummy text of the printing a.....
So the HTML rendering (asciidoctor) renders very good, like:
HTML:
But for PDF or for EPUB3, it always renders it in a strange and unfriendly way (I tried different options for the images, nothing found to work nicely yet):
Epub:
PDF:
Can you please repost your entire report here?
done
My advice here would be to go ahead and add the same styles that are present in the default stylesheet. The reason I didn't add them originally is because many ePUB readers won't honor them. But that's really up to the writer to decide whether to use layouts that are only supported in a handful of ePUB readers. Caveat emptor.
So what would happen in the case an epub reader (let's say "kindle") cannot read this style? it just switches to the default mode ? (first image, then text) or it directly don't show it? so if fallbacks to a different styling i don't see the problem
It would just ignore the request to float the image and display it as it currently appears.