Closed stenzengel closed 2 years ago
With https://github.com/Mogztter/asciidoctor-kroki/pull/95 if the block has explicit width and/or height attributes they will be preserved.
The remaining issue is to infer the width and height from the generated image when width and height are not explicitly defined. In this case, Asciidoctor Diagram does the following:
I've created a dedicated issue, closing.
Split of #13 to simplify tracking. The sample Asciidoctor input and the generated HTML output of asciidoctor-diagram and asciidoctor-kroki can be found there.
This issue only considers differences in the "width" and "height" attribute: asciidoctor-diagram sets the image "width" and "height" on the element. Kroki does not set these attributes.