Skip to content

fix(issues): preserve formatting when pasting rich text - #830

Open
zomux wants to merge 1 commit into
developfrom
codex/issue-markdown-paste
Open

zomux wants to merge 1 commit into
developfrom
codex/issue-markdown-paste

Conversation

@zomux

@zomux zomux commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Copying formatted text into an issue previously used the clipboard's plain-text representation, dropping code fences, emphasis, and link destinations. Convert rich clipboard HTML to Markdown in the shared issue description/comment input, prefer explicit Markdown clipboard data, and preserve native paste for plain text. Conversion parses inert HTML and removes active content and copy-button chrome.

Paste replaces the current selection, preserves existing mention identities, respects input limits, and restores the cursor. The editor continues to display Markdown source; the saved issue renders it.

Validation: nine tests pass, covering the reported code/bold/link example, headings/lists, plain Markdown, explicit Markdown priority, and a real React paste event with selection replacement and mentions. Frontend TypeScript and diff checks pass.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openagents-workspace Ready Ready Preview Oct 24, 2026 4:07pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 04bbaeb8 Deployed Oct 24, 2026 by vercel[bot]
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.

1 participant