Conversation
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>
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses all feature requests from #14062; we still need to fix the actual bug there, though.