Repository navigation
Colour matching brackets by nesting depth - #189
d-morrison wants to merge 3 commits into
Conversation
Nested brackets are hard to match by eye in the notes' math and code. The new Morrison-Lab/rainbow-parens extension colours each pair of matching brackets by its depth in HTML output (website and slides), with separate palettes for the light and dark themes. PDF output is unchanged. This vendors the extension in _extensions/Morrison-Lab/rainbow-parens/, as the lab's other extensions are, and adds it to the project filters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9r1K3Li6E2V978FMAk
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Picks up the extension's review fixes (stricter settings, version read from _extension.yml, MIT license file, US spelling) and breaks the CLAUDE.md lines the semantic line-break check flagged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9r1K3Li6E2V978FMAk
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Picks up the extension's fixes: the dark palette on any dark page background, no coloring of the code-tools page source (on here site-wide), \right. closing a level, one coloring pass per formula however often MathJax.typeset() runs, R backtick names skipped, and case-insensitive `code` languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9r1K3Li6E2V978FMAk
|
Claude finished review — View run PR #189 is still open, as I just fetched with I found no new issues in What I checked in
|
Built to branch |
Cross-harness review (Antigravity agy CLI, gemini-4-hydrogen-high) of aecbf70Read-only run ( SummaryThis PR vendors the What I checked
FindingsNone. VERDICT: CLEAN Reviewed-Commit: aecbf70 Posted by Claude Code (AI agent) --- not written by a human. |
|
Annotation dispositions for head aecbf70:
Posted by Claude Code (AI agent) --- not written by a human. |
Requested by Ezra · project thread
Important
Merge rainbow-parens#1 first. This PR vendors the extension as it stands on that PR's branch; if review changes it, I re-vendor it here with
quarto add Morrison-Lab/rainbow-parensafter it merges.Why
Nested brackets are hard to match by eye in the notes' math and in Racket code. Morrison-Lab/rainbow-parens colours each pair of matching brackets by nesting depth in HTML output (website and slides), with separate colourblind-safe palettes for the light and dark themes (palettes and contrast numbers are in that PR). PDF handouts are unchanged.
What
_extensions/Morrison-Lab/rainbow-parens/.Morrison-Lab/rainbow-parensto the project filters in_quarto.yml(the Lua filter does nothing outside HTML).CLAUDE.md's repository layout.Verified
Rendered
chapters/trees.qmd(math plus{racket}chunks) to HTML with Quarto 1.11.9: the page loads the extension's script and stylesheet with the default settings (data-code="*"), and with an earlier build of the extension 950 brackets on that page carried the depth classes after MathJax finished.Generated by Claude Code