Show the canonical article body with its footnotes on Lab unit pages - #20
Merged
Merged
Conversation
The Lab conversation previously rendered only the parsed notes plus a link to the exact source, so the reviewed layers sat next to footnotes whose article was absent. Speaker A now renders the exact canonical body via a canonUnitBody filter that mirrors the body extraction in verify-article-canon.mjs, keeping the provenance link and the Speaker B note turns unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E93Rxmrs8bXHtWjD7z94bi
erinepshovel-code
marked this pull request as ready for review
July 28, 2026 19:51
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.
The Article Lab unit pages rendered the parsed footnotes as Speaker B turns, but the article body itself was only a link ("The exact canonical unit is one interaction away"), so the reductio tests, practices, applications, and research field sat next to footnotes whose article was absent from the page.
Change
.eleventy.js— newcanonUnitBodyfilter: returns a unit's exact canonical body lines (skips the heading line; stops before footnote lines,**[Notes …]**blocks,---separators, and sub-headings). It mirrors the body extraction inscripts/verify-article-canon.mjs, with a comment binding the two.src/lab/unit.njk— the Speaker A panel now renders that body as ablockquote.reading, keeping the "Open exact source and provenance" link and the existing Speaker B note turns unchanged.The Lab conversation now reads as intended: exact article body (Speaker A) over its footnotes (Speaker B), then the interpretive layers.
Testing:
npm test— 20/20 pass. Verified via direct Eleventy render that Article Five's lab page shows the full canonical body plus all five notes, and that non-article units (e.g. list-style Interdefinables) render their body lines sanely.🤖 Generated with Claude Code
https://claude.ai/code/session_01E93Rxmrs8bXHtWjD7z94bi
Generated by Claude Code