You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No copy button for code blocks in .md files, double-click copies fences #3579
When opening a Markdown .md file in the web UI, fenced code blocks have no copy button. If I select the code by double-click and copy it, the markdown fences (```) are copied too, so the clipboard content can't be pasted directly into a terminal or IDE
Steps to reproduce
create .md file
under 'turn into' select 'code block'
write something into the code block
try to copy it
Expected behavior
A copy button should exist and if you want to copy by double clicking + ctrl c, the markdown fences shouldn't be copied to clipboard
Actual behavior
Copy button copies the code to your clipboard. Double clicking + ctrl c should only copy the code without markdown fences
I selected the code in the box and copied with ctrl +c. This is with it copied: ```bash
echo "hello github"
```
I double clicked on the text in the box, not outside and dragged the cursor or something
Additional context
I'm pretty sure there was a copy button on version 7.x
Reacted by Jannik Stehle, Benedikt Kulmann and Soluna
Activity
JammingBen commentedon Nov 6, 2026
Copying has been fixed with #4271. See #4272 for the copy button.