--embed-resources
drops the classes of embedded image when embedding element has classes of their own
#9652
Labels
--embed-resources
drops the classes of embedded image when embedding element has classes of their own
#9652
Explain the problem.
When
--embed-resources
is used to embed an svg file that contains classes, and the image element that references it also contains classes, then pandoc picks the classes of the image element and drops those of the svg element.Instead, I believe it should merge the two class lists. Repro follows:
Note that
please-do-not-delete-me
is missing from the result.Pandoc version?
Pandoc 3.1.13, built from the github repo on macOS 13.5.2 (22G91), Apple Silicon.
I'll contribute the fix to this one, it affects Quarto's embedding of R plots with the
svglite
graphics device.The text was updated successfully, but these errors were encountered: