Skip to content

Prefer pasting plain text for source code#1489

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Jun 16, 2026
Merged

Prefer pasting plain text for source code#1489
cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates MarkEdit’s pasteboard sanitization so that when users paste source code, the app prefers plain text (and still normalizes line endings when needed) to avoid pasting richer/code-specific pasteboard representations.

Changes:

  • Detect “source code” pasteboard content and temporarily force .string-only pasting.
  • Refactor line-ending normalization into a single sanitized computation that also triggers the plain-text behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cyanzhong cyanzhong merged commit b75936b into main Jun 16, 2026
2 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