Skip to content

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