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

Inlined images css #74

Merged
merged 3 commits into from
Feb 11, 2020
Merged

Inlined images css #74

merged 3 commits into from
Feb 11, 2020

Conversation

mjpieters
Copy link
Contributor

This should resolve #73, as well as a minor issue with url("...") references not being handled.

When exporting to pdf/.tmp and *not* inlining large assets (> 8kb as data url),
Chrome is still not going to find these relative paths. So configure
`.css()` to rewrite file references to be relative to the export location,
and set relativeTo to the export directory so the assets are still found.
@mjpieters mjpieters requested a review from sinedied January 21, 2020 17:50
@cdessez
Copy link

cdessez commented Feb 10, 2020

+1

I currently need to fix the version of backslide to 2.3.7 in my slide CI to work around this bug.

Copy link
Owner

@sinedied sinedied left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the fix!

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

Successfully merging this pull request may close these issues.

CSS images with relative paths are not inlined (PDF or HTML)
3 participants