Skip to content

Preserve section text IDs across sectioning and rendering#78

Merged
nicpottier merged 3 commits intomainfrom
nicpottier/section-text-ids
Feb 19, 2026
Merged

Preserve section text IDs across sectioning and rendering#78
nicpottier merged 3 commits intomainfrom
nicpottier/section-text-ids

Conversation

@nicpottier
Copy link
Contributor

@nicpottier nicpottier commented Feb 19, 2026

This updates page sectioning to attach stable IDs to each text entry and extends the shared sectioning schema to require an explicit ID field on section text entries. Web rendering now preserves those IDs when filtering pruned texts instead of re-indexing, so IDs remain stable across rendering and editing flows. Tests were updated in page-sectioning and web-rendering to assert the new shape and to cover the prune-order regression case.

@nicpottier nicpottier merged commit 2a24e7b into main Feb 19, 2026
1 check passed
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