Skip to content

Feature/llms txt fixes#14067

Merged
cscheid merged 6 commits intomainfrom
feature/llms-txt-fixes
Feb 20, 2026
Merged

Feature/llms txt fixes#14067
cscheid merged 6 commits intomainfrom
feature/llms-txt-fixes

Conversation

@cscheid
Copy link
Collaborator

@cscheid cscheid commented Feb 19, 2026

Addresses all feature requests from #14062; we still need to fix the actual bug there, though.

cscheid and others added 4 commits February 19, 2026 12:00
Links with anchors (e.g. about.html#section) were not being converted
to .llms.md because the Lua pattern only matched .html at end-of-string.
Now also matches .html followed by # and rewrites both cases.

Breadcrumbs from sidebar navigation were leaking into .llms.md output.
Add quarto-page-breadcrumbs to droppable_classes in the Lua filter.

Adds test coverage for both fixes: anchor link conversion in both
directions, .html# negative matches, sidebar config to trigger
breadcrumbs, and breadcrumb text negative match.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tabsets were rendered as a bullet list of empty links followed by
disconnected content. Add handle_tabset() to the Lua filter that
extracts tab titles from the nav BulletList and pairs them with
their tab-pane contents, outputting each as a heading + content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Save original code block text (with annotation markers) before
code-annotation.lua strips them, then restore during HTML-to-markdown
conversion. Annotation definition lists are converted to ordered lists.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Allow users to include/exclude content in .llms.md output using
content-visible/content-hidden with when-format="llms-txt". A pre-filter
intercepts ConditionalBlock nodes before they are cleared, wrapping them
in marker divs that llms.lua and the HTML finalizer handle independently.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Feb 19, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

cscheid and others added 2 commits February 19, 2026 14:06
- Remove breadcrumbs from extracted HTML before Pandoc conversion,
  since Pandoc strips <nav> wrappers and loses the droppable class
- Strip ./ prefix from converted .llms.md links for cleaner output
- Fix test regex to match code annotation markers with space

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cscheid cscheid merged commit 069819b into main Feb 20, 2026
51 checks passed
@cscheid cscheid deleted the feature/llms-txt-fixes branch February 20, 2026 14:51
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