Skip to content

Preserve Markdown formatting when copying transcript selections - #47896

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f0476334a6bf8ad0fb57626627bd258443540852
Sep 24, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/f0476334a6bf8ad0fb57626627bd258443540852

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Preserve Markdown formatting when copying transcript selections

Why

Transcript selections were copied as plain text, losing the formatting of rendered Markdown when pasted.

What changed

  • Retain semantic Markdown annotations through rendering, wrapping, and streaming, then serialize selected text with balanced markup.
  • Preserve inline formatting, web links, headings, lists, blockquotes, and hard breaks in Markdown clipboard payloads.
  • Keep code-only and other literal-only selections as plain text. In mixed selections, escape user prose and fence code, tables, and tool output to preserve their literal content.

Testing

Add unit tests and Markdown/HTML snapshots covering partial selections, nested containers, escaping, links, resize stability, and streaming boundaries.

## Why

Transcript selections were copied as plain text, losing the formatting of rendered Markdown when pasted.

## What changed

- Retain semantic Markdown annotations through rendering, wrapping, and streaming, then serialize selected text with balanced markup.
- Preserve inline formatting, web links, headings, lists, blockquotes, and hard breaks in Markdown clipboard payloads.
- Keep code-only and other literal-only selections as plain text. In mixed selections, escape user prose and fence code, tables, and tool output to preserve their literal content.

## Testing

Add unit tests and Markdown/HTML snapshots covering partial selections, nested containers, escaping, links, resize stability, and streaming boundaries.

GitOrigin-RevId: f0476334a6bf8ad0fb57626627bd258443540852
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/f0476334a6bf8ad0fb57626627bd258443540852 branch from 397bb92 to a33fb97 Compare September 24, 2026 17:55
@copyberry
copyberry Bot merged commit a33fb97 into main Sep 24, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/f0476334a6bf8ad0fb57626627bd258443540852 branch September 24, 2026 17:55
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2026

This branch was successfully deployed

1 active deployment
issue-triage — a33fb975 Deployed Sep 24, 2026 by PiscoBandito via Generate label suggestions #48052
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants