-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
--embed-resources producing invalid data URI #8239
Comments
Possibly relevant changelog item:
We need to look into this further, thank you for reporting. Have you tried with pandoc 2.19? |
Follow-up: can you explain why you think it is wrongly encoded? When I open test.html with my browser, the images look correct. |
Oh, interesting. It renders fine in Safari, but not in Firefox or Chrome. According to base64.guru, the issue seems to be the |
The problem is that I used the functions that generate base64url encoding, which is slightly different from standard base64. I will revert this. |
I downgraded to 2.19. But with that version there is still an issue with the PDF output not showing that SVG. |
The PDF issue is something else. Probably the issue is that you don't have the software pandoc uses to convert svg to png for use in LaTeX. You should see a warning message about this. |
Is that librsvg? I have it. I don't see any warning, only an info: with
|
I'm not sure. Your document contains
which suggests that pandoc has converted the svg to pdf and is including that. If you can link to a full zip with everything needed for the conversion, I could try it out. |
Mea culpa. I must have done something wrong at first try, because the graphic is indeed included now |
Explain the problem.
I have a SVG file that seems to be wrongly encoded with --embed-resources
pandoc --from markdown --embed-resources --standalone test.md -o test.html
input-example.abnf.svg
output: test.html
Pandoc version?
pandoc 2.19.1
Compiled with pandoc-types 1.22.2.1, texmath 0.12.5.2, skylighting 0.13,
citeproc 0.8.0.1, ipynb 0.2, hslua 2.2.1
Scripting engine: Lua 5.4
Gentoo Linux
The text was updated successfully, but these errors were encountered: