Skip to content

Check fragments in HTML files - #1198

Merged
mre merged 6 commits into
lycheeverse:masterfrom
HU90m:html_frags
Aug 22, 2023
Merged

mre merged 6 commits into
lycheeverse:masterfrom
HU90m:html_frags

Conversation

@HU90m

@HU90m HU90m commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

Part of the #185 work.

This PR adds fragment checking for the second type of link in #185 (comment) .

@mre mre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks really nice. Especially the refactoring in fragment_checker.
I've added some comments.
Are you planning to add support in html5ever as well?

Comment thread lychee-lib/src/extract/html/html5gum.rs Resolved
Comment thread lychee-lib/src/extract/html/html5gum.rs Resolved
Comment thread lychee-lib/src/extract/html/mod.rs Resolved
Comment thread lychee-lib/src/extract/markdown.rs Resolved
@HU90m

HU90m commented Aug 6, 2023

Copy link
Copy Markdown
Contributor Author

Are you planning to add support in html5ever as well?

What would be the benefit of doing this?

@mre

mre commented Aug 6, 2023

Copy link
Copy Markdown
Member

The main advantage would be feature-parity with html5gum. Then again, we wanted to remove html5ever anyway at some point and it shouldn't be a blocker. Just checking if the PR is done and ready for review.

@HU90m

HU90m commented Aug 8, 2023

Copy link
Copy Markdown
Contributor Author

The main advantage would be feature-parity with html5gum. Then again, we wanted to remove html5ever anyway at some point and it shouldn't be a blocker. Just checking if the PR is done and ready for review.

Ah cool, yeah I hadn't created a html5ever version because it looked like html5ever was being depreciated (and it routing the html5ever option into the file checker seemed like additional unnecessary work).

Comment thread lychee-lib/src/extract/markdown.rs Resolved
Comment thread lychee-lib/src/extract/markdown.rs Resolved
@mre
mre merged commit f59aa61 into lycheeverse:master Aug 22, 2023
@mre

mre commented Aug 22, 2023

Copy link
Copy Markdown
Member

At long last, I finally came around to reviewing and merging this. Apologies for the delay. The feature turned out great! Thanks for the contribution (and your patience) @HU90m. 🤩

@HU90m

HU90m commented Aug 23, 2023

Copy link
Copy Markdown
Contributor Author

No apology needed. Thanks for making it so easy to contribute!

@mre mre added the enhancement New feature or request label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants