pandoc / dockerfiles

Dockerfiles for various pandoc images
GNU General Public License v2.0
364 stars 98 forks source link

Add rsvg-convert package to core #239

Closed mikeb727 closed 3 months ago

mikeb727 commented 3 months ago

The pandoc/core Docker image and its derivatives do not include the rsvg-convert package containing the /usr/bin/rsvg-convert executable. As a result, attempting to convert a Markdown file with linked SVG images to PDF output fails. Additionally, starting a container, attaching a shell with Docker exec, and using find to search for rsvg-convert in the container filesystem yields no results. See the Alpine package contents for librsvg, which is listed in the Dockerfile but does not contain /usr/bin/rsvg-convert, and rsvg-convert, which does contain /usr/bin/rsvg-convert but is not listed in the Dockerfile.

tarleb commented 3 months ago

Thanks for the report! I'll fix it.

For the time being you could use the pandoc/latex:latest-ubuntu image. The /usr/bin/rsvg-convert binary exists in that container.

tarleb commented 3 months ago

Just for context: the rsvg-convert package exists since Alpine 3.17; the binary was part of librsvg before that.