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

fix(inline.ts): use xlink:href additionally to href in img #183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BoutValentin
Copy link

@BoutValentin BoutValentin commented Mar 24, 2023

Hey 👋

This pull request aim to resolve an issue about the inlineResources function.

When we try to use the inlineResources function, an error is throw. The error is due to an empty URL given to the fetchResource function. The URL is empty because the inlineResources function try to find the href of an image, but it appears that the href of the image element is changed before to an xlink:href attribute.

With this simple workaround I propose, we should be able to retrieve URL from the href or xlink:href attribute.

Edit: this should resolve #170

Regards,
Valentin

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.

inlineResources not working (fetchResource() Error: No URL passed)
1 participant