dalibo / pandocker

🐳 A simple docker image for pandoc with filters, templates, fonts, and the latex bazaar
https://hub.docker.com/r/dalibo/pandocker/
BSD 3-Clause "New" or "Revised" License
143 stars 23 forks source link

Updated pandoc and pandoc-crossref #229

Closed DigitalFlow closed 2 years ago

DigitalFlow commented 2 years ago

Hi there,

thanks for providing this image, it's great to use and helps us a lot.

We have been running into issues lately with embedding styled .svg files. They fail with errors like below:

[WARNING] Could not convert image /tmp/tex2pdf.-d1a172ffd03ab359/input.svg: conversion from SVG failed
parsing error: 1:2180:could not recognize next production
parsing error: 1:2210:while parsing rulset: current char must be a '}'

It seems this is a bug from librsvg, which was handled in here: https://gitlab.gnome.org/GNOME/librsvg/-/issues/428 The fix was released in librsvg 2.47.1, but with pandocker being based on pandoc/latex:2.14.1, it seems this fix is not yet incorporated.

I updated the versions for pandoc/latex and pandoc-crossref, which should as result also update librsvg, as the latest pandoc/latex images builds up on alpine 3.14, which offers librsvg in a version which includes the fix: https://pkgs.alpinelinux.org/packages?name=librsvg&branch=v3.14

I hope this all makes sense to you. It built successfully at my side.

Kind regards, Florian

daamien commented 2 years ago

Thanks a lot !

This will be part of the next stable release