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
Directly include Base64-encoded images in .qmd #6568
Comments
This is coming from the Pandoc reader, so we can't undo it in Lua.
Possibilities:
|
Thanks for confirming the problem and boiling it down to the |
Did we report this upstream already ? It seems wrong behavior from pandoc 🤔 |
I haven't - go ahead if you want to. I'd rather fix now and remove the need to fix it later. |
I'll do it. |
That's great, thanks! |
FWIW @cscheid this has been solve in current dev version of Pandoc : jgm/pandoc@d62e5f3 Should be available next time we update our Pandoc version bundled. |
This is available in Pandoc 3.1.9 (https://github.com/jgm/pandoc/releases/tag/3.1.9) and will be available in Quarto when this version will be included. Follow up on changelog to know when. |
Pandoc is appending .png at the end of data URIs. I thought we had fixed this but apparently it's back.
Discussed in #6567
Originally posted by zeileis August 21, 2023
Description
When I include Base64-encoded images directly in .qmd files, they are not rendered correctly. When I just do
Then a .png suffix is added at the end in the
<img =src"..">
which does not work.Additionally, in some contexts I get the
file name too long (os error 36)
error, similar to #4613.A minimal example replicating the first issue using quarto 1.3.450 and R package base64enc is:
I wasn't able to pinpoint exactly when I get the
file name too long
error. I only get it with Opengraph/Twitter enabled in_quarto.yml
but only in my actual website and not in a minimal fresh website. I can try to dig deeper in case this is needed.The text was updated successfully, but these errors were encountered: