Description
This was reported initially in the asciidoctorj-diagram repo, where they told me to report it here. asciidoctor/asciidoctorj-diagram#57 (comment)
With this example project you can see that d2
rendering doesn't work. Testing with the linked project you can see that the asciidoctor-diagram
gem generates both diagrams correctly (d2 and ditaa), while the asciidoctorJ task fails to generate the d2 diagram
simply run ./gradlew asciidoctor
and look at the build/docs/asciidoc/pages/index.html
file and you will see a generated ditaa
diagram, but the d2
diagram is not generated, and is a plain block inline in the html.
to compare to asciidoctor-diagram
run
bundle
to install the gems needed and then run
./gradlew asciidoctorFromGem
and look at the docs/modules/ROOT/pages/index.html
file to see the diagram has been generated correctly with the gem.
I initially thought I was doing something wrong because this user asciidoctor/asciidoctorj-diagram#35 seemed to get it working, but this is about as simple of an example as I can create and yet it still doesn't work. Either the docs are wrong or this just doesn't work.
per the linked issue in asciidoctorj-diagram it seems that asciidoctorj-diagram generates it just fine. It is only gradle that is having the issue.