Skip to content

Conversation

@angelogladding
Copy link
Collaborator

@angelogladding angelogladding commented Oct 17, 2023

  • a source without a descriptor defaults to 1x
  • sources with already seen descriptors are ignored
  • URLs may contain a comma

Closes #169.

- a source without a descriptor defaults to `1x`
- sources with already seen descriptors are ignored
- URLs may contain a comma

Empty alt properties are no longer kept.
Update regular expression and simplify parsing algorithm as a result.
@angelogladding
Copy link
Collaborator Author

The test cases were based upon microformats/microformats2-parsing#7 (comment) and "Elva dressed as a fairy" is widely used https://github.com/search?q=elva+dressed+fairy&type=code

Copy link
Member

@sknebel sknebel left a comment

Choose a reason for hiding this comment

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

LGTM!

@angelogladding angelogladding merged commit cf322c4 into microformats:main Nov 30, 2023
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.

support img srcset

2 participants