Skip to content

Fix lazy-loaded image source extraction#327

Open
calmplay wants to merge 1 commit into
kepano:mainfrom
calmplay:fix/lazy-loaded-image-urls
Open

Fix lazy-loaded image source extraction#327
calmplay wants to merge 1 commit into
kepano:mainfrom
calmplay:fix/lazy-loaded-image-urls

Conversation

@calmplay

Copy link
Copy Markdown

Summary

  • promote common lazy image source attributes when an image src is a data:image placeholder
  • include data-original, data-lazy-src, data-actualsrc, and data-backup in lazy-image cleanup
  • keep small placeholder images when they have an alternate lazy source so standardization can resolve them

Moved this fix here after maintainer feedback on obsidianmd/obsidian-clipper#896 that the change belongs in Defuddle.

Tests

  • git diff --check
  • npm test
  • npm run build
  • npm run lint:innerhtml
  • npm run size

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.

1 participant