Patch 2#45206
Conversation
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
|
👋 Hey there spelunker. It looks like you've modified some files that we can't accept as contributions:
You'll need to revert all of the files you changed that match that list using GitHub Desktop or The complete list of files we can't accept are:
We also can't accept contributions to files in the content directory with frontmatter |
A leading --- fence now renders as a quiet key/value table everywhere: documents and Quick Look show a collapsed "Front matter" details block; rendered diffs show compact metadata tables inside the usual red/green wrappers instead of walls of bold prose. - MarkdownBlocks.split keeps a leading front matter fence as one block (even across blank lines) so diffs treat the metadata atomically, with CRLF-safe fence matching; mid-document --- rules and setext headings never match. - DiffSegmentPayload carries per-side fmText/fmOldText flags computed in Swift (only Swift knows both sides' true line numbers — the pairing in github/docs#45206 gives the segment the new side's line numbers while only the old side is front matter). Word-level diff marks are skipped for front-matter segments. - app.js renders the table line-based and safe (textContent, no YAML parser): simple `key: value` lines split on the first colon, nested or complex lines stay preformatted. Blame still annotates the fence's file lines on the details element. - Quick Look's StaticRenderer emits the same details/table markup from its JSC pipeline, with matching styles. - Styling on primer variables so all reading themes and both appearances adapt. - Tests: front-matter block splitting incl. line numbers, hr/setext false-positive guards, CRLF, per-side flags, wordDiff skipping; kitchen sink gains a front matter header with render-check assertions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
New real window captures (retina, light): the hero is now the README with the blame gutter on — history in the margin — the reviewing section shows the github/docs#45206 front-matter diff (old front matter as a metadata table, and the patch's breakage plainly visible), and the reading section gains the Settings → Themes window with its three live preview cards. Feature list updated for blame/line history, front matter, and Update Now / What's New; honest alt text and captions throughout. Verified in headless Chrome, light + dark + 390px. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A leading --- fence now renders as a quiet key/value table everywhere: documents and Quick Look show a collapsed "Front matter" details block; rendered diffs show compact metadata tables inside the usual red/green wrappers instead of walls of bold prose. - MarkdownBlocks.split keeps a leading front matter fence as one block (even across blank lines) so diffs treat the metadata atomically, with CRLF-safe fence matching; mid-document --- rules and setext headings never match. - DiffSegmentPayload carries per-side fmText/fmOldText flags computed in Swift (only Swift knows both sides' true line numbers — the pairing in github/docs#45206 gives the segment the new side's line numbers while only the old side is front matter). Word-level diff marks are skipped for front-matter segments. - app.js renders the table line-based and safe (textContent, no YAML parser): simple `key: value` lines split on the first colon, nested or complex lines stay preformatted. Blame still annotates the fence's file lines on the details element. - Quick Look's StaticRenderer emits the same details/table markup from its JSC pipeline, with matching styles. - Styling on primer variables so all reading themes and both appearances adapt. - Tests: front-matter block splitting incl. line numbers, hr/setext false-positive guards, CRLF, per-side flags, wordDiff skipping; kitchen sink gains a front matter header with render-check assertions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
New real window captures (retina, light): the hero is now the README with the blame gutter on — history in the margin — the reviewing section shows the github/docs#45206 front-matter diff (old front matter as a metadata table, and the patch's breakage plainly visible), and the reading section gains the Settings → Themes window with its three live preview cards. Feature list updated for blame/line history, front matter, and Update Now / What's New; honest alt text and captions throughout. Verified in headless Chrome, light + dark + 390px. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Why:
Closes:
What's being changed (if available, include any code snippets, screenshots, or gifs):
Check off the following: