Skip to content

fix: Remove extra new line when manually copying code blocks#75

Merged
lbeckman314 merged 2 commits intorefactor/new-sitefrom
fix/copy-and-paste
Feb 13, 2026
Merged

fix: Remove extra new line when manually copying code blocks#75
lbeckman314 merged 2 commits intorefactor/new-sitefrom
fix/copy-and-paste

Conversation

@lbeckman314
Copy link
Contributor

@lbeckman314 lbeckman314 commented Feb 13, 2026

Overview

This PR adds a minor config that resolves an issue when manually copying any code block.

Note

This only affects the behavior of selection by double clicking the contents

The existing "Copy to clipboard" option works as expected

Current Behavior ❌

brew
 install git-lfs        <-----  Extra newline introduced ❌

New Behavior ✅

brew install git-lfs    <-----  No newline introduced ✅

Copilot AI review requested due to automatic review settings February 13, 2026 18:22
@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for calypr ready!

Name Link
🔨 Latest commit 0495a3e
🔍 Latest deploy log https://app.netlify.com/projects/calypr/deploys/698f6e3f6b1ed20009ac6645
😎 Deploy Preview https://deploy-preview-75--calypr.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

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 fixes an issue where extra newlines appear when manually copying code blocks from the documentation. The fix disables line numbers and anchor line numbers in the pymdownx.highlight extension configuration.

Changes:

  • Disable line numbers (linenums: false) in code blocks to prevent extra newlines during manual copying
  • Disable anchor line numbers (anchor_linenums: false) to support the copy behavior fix

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

@lbeckman314 lbeckman314 merged commit ca4f9f0 into refactor/new-site Feb 13, 2026
4 checks passed
@lbeckman314 lbeckman314 deleted the fix/copy-and-paste branch February 13, 2026 18:33
@lbeckman314 lbeckman314 added bug Something isn't working documentation Improvements or additions to documentation labels Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments