Skip to content

Commit

Permalink
Adjusted code copy button documentation
Browse files Browse the repository at this point in the history
Co-authored-by: thorstenpeter-sophos <[email protected]>
  • Loading branch information
squidfunk and thorstenpeter-sophos committed Sep 27, 2024
1 parent aeb9492 commit 56fdb28
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/reference/code-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,19 @@ theme:
```
````

Note that the language shortcode which has to come first must now also be
prefixed by a `.`. Similarly, the copy button can also be disabled for a
specific code block:
Note that there must be a language shortcode, which has to come first and
must also be prefixed by a `.`. Similarly, the copy button can also be
disabled for a specific code block:

```` { .yaml .no-copy }
``` { .yaml .no-copy }
# Code block content
```
````

To enable or disable the copy button without syntax highlighting, you can
use the `.text` language shortcode, which doesn't highlight anything.

### Code selection button

<!-- md:sponsors -->
Expand Down

0 comments on commit 56fdb28

Please sign in to comment.