Repository navigation
footnotes: mark the number links and side note numbers as decorations, so text exports drop them - #3
Merged
Merged
Conversation
…, so text exports drop them Co-Authored-By: Claude Opus 5.5 (1M context) <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.
Closes #2
With starlight-llms-txt set to drop
.scb-deco, each footnote under a code block still came through with its back link (1. [1.](#scb-fnref-…)Needs uv on PATH.), becausea.scb-footnote-numwas not in the list of decorations. The number list of side annotations had the same problem: itsscb-annotation-note-numspan repeated the<ol>number (1. 1Runs it.).Both are now in the decoration list in
core.ts, so they getscb-decoanddata-pagefind-ignorelike the other decorations. The numbers still show on screen:scb-decoadds no styles. The text exports now read as plain numbered lists, and Pagefind no longer indexes the numbers.test/decorations.test.ts: with the decorations removed, each footnote item and side note reads as the note text only. It fails without the fix.I checked the other lists outside the code. The print list of annotations (
scb-annotation-list) has plain items with no numbers or links. Callouts, popovers and footnote badges were already decorations.pnpm lint,pnpm test,pnpm lint:docsandpnpm docs:buildpass.docs/dist/llms-full.txthas noscb-fnreflinks now.🤖 Generated with Claude Code