Skip to content

No copy button for code blocks in .md files, double-click copies fences #3579

Closed

Description

@binnichtaktiv

Describe the bug

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

  1. create .md file
  2. under 'turn into' select 'code block'
  3. write something into the code block
  4. 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

Setup

opencloud-compose running OpenCloud 8.1.0 rolling

services:
  opencloud:
    # renovate: depName=opencloudeu/opencloud-rolling
    image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-latest}

Example

Image 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

Activity

  1. self-assigned this
    on Nov 2, 2026
  2. moved this from Prio <= 3 to In Progress in OpenCloud Team Boardon Nov 2, 2026
  3. JammingBen commented on Nov 6, 2026

    @JammingBen
    Member

    Copying has been fixed with #4271. See #4272 for the copy button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions