Skip to content

feat(#34): strip orphan footnotes when keeping position - #45

Open
KyleKing wants to merge 2 commits into
keep-footnote-positionfrom
keep-footnote-position-orphans
Open

feat(#34): strip orphan footnotes when keeping position#45
KyleKing wants to merge 2 commits into
keep-footnote-positionfrom
keep-footnote-position-orphans

Conversation

@KyleKing

@KyleKing KyleKing commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Stacked PR to finish orphan handling to keep position when requested

…euse

_categorize_footnotes, build_dependency_graph, and collect_refs_in_fences
are about to be shared with the position-keeping orphan handling, so
they no longer belong to a single file.
Reuses the existing fence/nested-reference categorization so a footnote
referenced only inside a code fence or only from another footnote isn't
wrongly treated as an orphan. Honors --keep-footnote-orphans.
@KyleKing KyleKing self-assigned this Sep 1, 2026
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.

1 participant