Skip to content
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

Pandoc Sandbox and Embedded Data URIs for Images #10249

Closed
cmason3 opened this issue Oct 1, 2024 · 1 comment
Closed

Pandoc Sandbox and Embedded Data URIs for Images #10249

cmason3 opened this issue Oct 1, 2024 · 1 comment
Labels

Comments

@cmason3
Copy link

cmason3 commented Oct 1, 2024

I am currently using Pandoc 3.4 to convert from HTML to DocX. Within the HTML document I am using Data URIs to embed images within my HTML, but these aren't appearing within the converted DocX. I realised I needed to include the --standalone and --embed-resources options, but it still wasn't working and this was because I am using the Sandbox and I was getting the following error:

[WARNING] Could not fetch resource data:image/png;base64,iVBORw0KGgoAAAAN...

Is there anyway to tell the Sandbox to allow embedded Data URIs? I understand the need to limit fetching random external URLs and this would require Network I/O, but how come an embedded Data URI triggers the Sandbox unless it is actually written to disk between the different conversion stages?

@cmason3 cmason3 added the bug label Oct 1, 2024
@jgm jgm closed this as completed in 7048254 Oct 1, 2024
@jgm
Copy link
Owner

jgm commented Oct 1, 2024

Thanks for the suggestion. I have made the change so that this can now be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants