Closed stenzengel closed 4 years ago
We should probably create one issue per issue otherwise it's hard to track:
asciidoctor-diagram uses the second argument "my-filename" for the file name in the "src" attribute: "images/my-filename.png". Kroki generates a unique ID.
https://github.com/Mogztter/asciidoctor-kroki/issues/48
asciidoctor-diagram uses the "png" format by default. Kroki uses the "svg" format.
I think svg is a good default.
asciidoctor-diagram replaces the "-" character in "my-filename" with " " in the "alt" attribute. Kroki does no replace this character.
could you please create a dedicated issue?
asciidoctor-diagram sets the image "width" and "height" on the element. Kroki does not set these attributes.
could you please create a dedicated issue?
Thanks!
split into dedicated issues to simplify tracking: see #48, #98, #99
Thanks Winfried :+1:
When I switched from asciidoctor to asciidoctor.js, I found out that asciidoctor-diagram and asciidoctor-kroki (with "kroki-fetch-diagram": true) do not produce the same HTML output (e.g. for plantuml diagrams):
Asciidoc Source:
Generated HTML with asciidoctor (Ruby) and asciidoctor-diagram:
Generated HTML with asciidoctor.js and asciidoctor-kroki:
There are several differences:
Would it be possible to make the results more similar (perhaps with the exception SVG vs. PNG) in order to facilitate the transition between the two extensions?