Skip to content

Extend --include-fragments docu #2278 - #2281

Merged
mre merged 3 commits into
lycheeverse:masterfrom
hoijui:patch-1
Aug 11, 2026
Merged

mre merged 3 commits into
lycheeverse:masterfrom
hoijui:patch-1

Conversation

@hoijui

@hoijui hoijui commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

A first draft, including the info I would want to see

A first draft, including the info I would want to see

@katrinafyi katrinafyi 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.

If you have it checked out locally, you can run make readme to generate the new README text and fix the failing test. If not let me know and I can do it.

Comment thread lychee-bin/src/config/mod.rs Outdated
Comment on lines +522 to +531
/// This check will not work on all URLs.
/// The rough requirements are, that the target content be Markdown or HTML,
/// and that it follows certain, common conventions.
/// If for example JavaScript needs to be executed
/// to get to the actual HTML content that might contain the anchor,
/// the check will not see the anchor (e.g. report a miss),
/// as this scenario would require running this checker to run a browser engine,
/// which would make it orders of magnitude heavier on computing resources.
/// More info about this check can be found here:
/// <https://lychee.cli.rs/recipes/anchors/>

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.

Makes sense. I shortened it a bit because we don't have to justify ourself in the help text. I think this limitation is very reasonable and unsurprising.

I also don't feel a strong need to list markdown + HTML. id attributes are fundamentally a HTML thing so other file types don't usually make sense. We support Markdown because Markdown is often converted to HTML. It's also in the linked page, but if you feel strongly about this it can be added back.

Suggested change
/// This check will not work on all URLs.
/// The rough requirements are, that the target content be Markdown or HTML,
/// and that it follows certain, common conventions.
/// If for example JavaScript needs to be executed
/// to get to the actual HTML content that might contain the anchor,
/// the check will not see the anchor (e.g. report a miss),
/// as this scenario would require running this checker to run a browser engine,
/// which would make it orders of magnitude heavier on computing resources.
/// More info about this check can be found here:
/// <https://lychee.cli.rs/recipes/anchors/>
/// If enabled, this check will only succeed if the anchors exist in the
/// static content of the target page (e.g., it will not run JavaScript).
/// See also: <https://lychee.cli.rs/recipes/anchors/>

Comment thread lychee-bin/src/config/mod.rs Outdated

@katrinafyi katrinafyi 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.

Thanks!

@mre
mre merged commit e5bdb18 into lycheeverse:master Aug 11, 2026
7 checks passed
@mre

mre commented Aug 11, 2026

Copy link
Copy Markdown
Member

Thanks for the contribution @hoijui.

@mre mre mentioned this pull request Aug 11, 2026
@hoijui

hoijui commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Thank you for the tool and the process; was a pleasure!

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.

3 participants