Skip to content

Comments

Fix crashing epub generation when image has no src#86

Open
DanielApt wants to merge 1 commit intocyrilis:masterfrom
DanielApt:fix-no-src-attribute
Open

Fix crashing epub generation when image has no src#86
DanielApt wants to merge 1 commit intocyrilis:masterfrom
DanielApt:fix-no-src-attribute

Conversation

@DanielApt
Copy link

If an image has no src attribute, epub generation fails.

Epub generation fails, because it always assumes that url is a string, this is not the case.

Specifically, code breaks on this line.

To prevent this from happening, this pull request checks if url exists before proceeding with setting ids and extensions.

This is a simplified version of #63, without any conflicts.

@bmccann36
Copy link

@cyrilis 👋 are you around to check out these PRs? Maybe time to pass the torch to a different maintainer if you don't want to deal with this anymore?
🙏
enjoying this npm package but it needs a little love

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.

2 participants