Skip to content

Draw blockquotes as greentext - #1237

Merged
trissim merged 4 commits into
mainfrom
feat/greentext
Oct 25, 2026
Merged

trissim merged 4 commits into
mainfrom
feat/greentext

Conversation

@trissim

@trissim trissim commented Oct 25, 2026 •

Copy link
Copy Markdown

Blockquotes in the transcript now draw as greentext.

  • markdown_preparation.py: GreenText(BlockQuote) is registered for blockquote_open in the transcript console, beside the fence override. It marks each quoted line with > instead of Rich's ▌ , and it is styled green (the terminal's ANSI green, so the theme palette applies) instead of markdown.block_quote magenta.
  • markdown_links.py: the greentext_lines core rule turns soft breaks inside a blockquote into hard breaks. Without it, > be me\n> fix toad collapses into a single line, be me fix toad.

Check: a real MarkdownStyleConsole.prepare run, then a Rich render, gives > be me / > fix toad / > ship greentext on separate lines. Every segment is style green (SVG fill #98a84b), and paragraphs outside the quote are unchanged. No new test.

Net +28 across 2 files.

🤖 Generated with Claude Code

https://claude.ai/code/session_013ejYrMLnLWah8wCDDcb57V

trissim and others added 2 commits October 25, 2026 03:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ejYrMLnLWah8wCDDcb57V
A quoted line keeps a visible `>` marker and renders green (GreenText
replaces Rich's magenta bar element in the transcript console), and
the conversation parser turns soft breaks inside a blockquote into hard
breaks so every quoted source line stays its own line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ejYrMLnLWah8wCDDcb57V
@trissim
trissim marked this pull request as ready for review October 25, 2026 07:02
@trissim
trissim enabled auto-merge October 25, 2026 07:02
Copilot AI balanced review requested due to automatic review settings October 25, 2026 07:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

trissim and others added 2 commits October 25, 2026 03:18
The greentext core rule walked every token of every message, counted quote
depth through tag string compares and rewrote softbreak tokens by type
string. It is deleted. Blockquote open/close and softbreak join the
existing ProjectTokenRule family: the innermost open block (JoinedLines or
QuotedLines) answers what a source newline draws as.

GreenText's "green" literal is replaced by GreenTextRole, resolved through
the line theme like every other transcript role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ejYrMLnLWah8wCDDcb57V
@trissim
trissim merged commit b4a17be into main Oct 25, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants