Repository navigation
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Oct 27, 2026
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.
Summary
A code block can now name its file after the language, and its header shows that filename instead of the language:
The language still picks the highlighting, and fences with only a language look the same as before.
Changes
CodeSpansreturns afilenamewith each code block, from whatever follows the language on the opening fence (title="…"is unwrapped).lib/code.tsmirrors it for drafts, with the same cases tested on both sides.CodeBlockshows the filename in place of the language, truncated with the full path intitle.filenamekey. Existing commits that already had text after the language (say{1,3}) now show that text as the label.Validation
Local, on
01ed888f:composer test:lintandcomposer test:typespass, type coverage is 100%.composer test:unit: Pest 4,531 passed at 100% coverage. Node unit tests and Vitest pass apart fromSeriesStashand 17 tests inChatScroll/RemoteNotifications, which fail the same way onproductionand in its CI.Visual evidence
Guest view of the same demo commit in Chrome (2x),
production(e83d7c04) vs this branch.1366×650: light before · light after · dark before · dark after
Device verification
No mobile interaction changes, only a label. 390×844 was checked with viewport emulation in Chrome, not on hardware or a simulator.
Independent review
A separate, read-only reviewer agent (given the task, the repo guidelines, the diff and these captures) returned CODE: PASS and VISUAL: PASS for
e83d7c04..01ed888f, mediaecc323c. Its one finding, client and server splitting the fence differently on non-space whitespace, was fixed and re-reviewed before that verdict.Limitations
Summary by CodeRabbit
titleattributes are also recognized as filenames.