# docs: Fix copying code blocks \(\#11617\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5fe40705013caa3e5ebfe60aa45646d1d0d120e6)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5fe40705013caa3e5ebfe60aa45646d1d0d120e6

Requested commit: 5fe40705013caa3e5ebfe60aa45646d1d0d120e6

Commit: 5fe40705013caa3e5ebfe60aa45646d1d0d120e6

Tree: c703cdd2145258634da4f4e78b51afa3d33bd980

Author: Marshall Bowers

Committer: GitHub

## Message

```
docs: Fix copying code blocks (#11617)

This PR fixes copying code blocks in the docs.

The problem was that some of the elements we removed from the base
mdBook template were causing errors in the script, which prevented the
right event listeners from being registered for the copy button.

To remedy this, the elements have been restored, but are using `display:
none` so that they don't appear in the UI.

Resolves #11592.

Release Notes:

- N/A
```

## Parents

- [981a143e9b03fe48d9640524c5004600a29f9845](https://git.cafe/gitcafe/zed/commit/981a143e9b03fe48d9640524c5004600a29f9845?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5fe40705013caa3e5ebfe60aa45646d1d0d120e6?format=markdown)
