New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in HTML format, embedded SVG gets modified #9206
Comments
Currently we're using |
This is extremely weird. |
I think the problem is that the two SVGs contain elements with duplicate IDs, e.g.
Manually making the ids unique fixes the problem. |
Thanks a lot for investigating this @jgm ! |
Here are two svg plot produced (with a SVG graphic device in R)
Let's use those .svg files in a .md document to convert to HTML with
embed-resources
This is the html produced:
See how the second plot has
Without `--embed-resources` we get correct plots
So it seems something in the embedding process modifies the SVG...
With Pandoc 3.1.5, the old way to embed SVG was used (
src
data uri forimg
) and the issue does not happen. It happens since Pandoc 3.1.6, since #8948Also, if only the second SVG is file provided, then it is not modified.
Details
Pandoc version?
Pandoc 3.1.9 on Windows
This comes from
embed-resources: true
not working as expected quarto-dev/quarto-cli#7584 (comment)The text was updated successfully, but these errors were encountered: