diff --git a/Dockerfile b/Dockerfile index 8286658..dcdfef5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -96,6 +96,9 @@ ARG kramdown_asciidoc_version=2.1.0 ARG asciidoctor_bibtex_version=0.9.0 ARG asciidoctor_kroki_version=0.10.0 ARG asciidoctor_reducer_version=1.0.2 +ARG barby_version=0.6.8 +ARG rqrcode_version=2.2.0 +ARG chunky_png_version=1.4.0 ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \ ASCIIDOCTOR_DIAGRAM_VERSION=${asciidoctor_diagram_version} \ @@ -106,7 +109,10 @@ ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \ KRAMDOWN_ASCIIDOC_VERSION=${kramdown_asciidoc_version} \ ASCIIDOCTOR_BIBTEX_VERSION=${asciidoctor_bibtex_version} \ ASCIIDOCTOR_KROKI_VERSION=${asciidoctor_kroki_version} \ - ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version} + ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version} \ + BARBY_VERSION=${barby_version} \ + RQRCODE_VERSION=${rqrcode_version} \ + CHUNKY_PNG_VERSION=${chunky_png_version} ## Always use the latest dependencies versions available for the current Alpine distribution # hadolint ignore=DL3018,DL3028 @@ -135,6 +141,9 @@ RUN apk add --no-cache --virtual .rubymakedepends \ "asciidoctor-bibtex:${ASCIIDOCTOR_BIBTEX_VERSION}" \ "asciidoctor-kroki:${ASCIIDOCTOR_KROKI_VERSION}" \ "asciidoctor-reducer:${ASCIIDOCTOR_REDUCER_VERSION}" \ + "barby:${BARBY_VERSION}" \ + "rqrcode:${RQRCODE_VERSION}" \ + "chunky_png:${CHUNKY_PNG_VERSION}" \ && apk del -r --no-cache .rubymakedepends \ # Fixes an issue with 2 nokogiri versions breaking asciidoctor-epub3 on arm64 && if [[ ${TARGETARCH} == arm64 ]]; then gem uninstall nokogiri -v '1.16.0'; fi diff --git a/tests/fixtures/sample-with-diagram.adoc b/tests/fixtures/sample-with-diagram.adoc index cca7b2e..f69d806 100644 --- a/tests/fixtures/sample-with-diagram.adoc +++ b/tests/fixtures/sample-with-diagram.adoc @@ -222,10 +222,32 @@ play 1--* play_player player 1--* play_player ---- +== Barcode + +[codabar] +---- +A31117013206375A +---- + +[qrcode, format="png", xdim=4] +.... +Hello World! + === Gnuplot http://www.gnuplot.info/ [gnuplot] .... plot sin(x) + +== Barcode + +[codabar] +---- +A31117013206375A +---- + +[qrcode, format="png", xdim=4] +.... +Hello World! ....