Repository navigation
docs: callout icons, line highlights, diffs and copy-link anchors - #336
Merged
Merged
Conversation
Callouts get an icon per kind. Fenced blocks accept a {1,3-4} attribute
that highlights lines, and diff blocks mark added and removed lines
(copying a diff gives the resulting file). Heading anchors become a
link icon that copies the section's URL and confirms with a small
toast.
Content: the recorder export steps highlight the lines they add, and
the init page shows the rc file change as a diff.
Closes #319
❗❗❗ report generated by this PR ❗❗❗☕ Order Coffee ☕Date/Time: 2026-11-07 13:02
|
☕ Order Coffee ☕Date/Time: 2026-11-07 13:02
|
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.
Closes #319
Callout icons
Tip (light bulb), Note (info), Important (flag) and Warning (triangle). They use the callout's own colour in both themes.
Line highlighting and diffs
json {4,11,12} title="…"highlights those lines with an accent background and left bar. Highlighting can open a span on one line and close it on a later one, so lines are split with open spans closed and reopened per line.diffblocks mark+lines green and-lines red. Copy gives the resulting file: removed lines dropped, markers stripped.Copy-link heading anchors
The
#after headings is now a link icon that slides in on hover. Clicking it scrolls to the section as before and also copies the section's full URL, with a "Link copied" toast at the bottom of the screen (role="status", so screen readers announce it).Verification
"outPath": "tmp/measures"only. Clicking a heading's link icon puts…/docs/cli/init#scaffold-an-example-flowon the clipboard and shows the toast.