diff --git a/docs/reference/code-blocks.md b/docs/reference/code-blocks.md index bcf6ea659..4ac278ad8 100644 --- a/docs/reference/code-blocks.md +++ b/docs/reference/code-blocks.md @@ -81,40 +81,6 @@ theme: ``` ```` -??? tip "Overriding the clipboard text" - - - - - If you want to define a slightly different text to be copied to the - clipboard, you can use the `data-copy` attribute on the code block. Note - that this attribute does not support multiple lines, which is not a - limitation of Material for MkDocs, but of the Markdown parser. Example: - - ```` markdown title="Code block" - ``` { .sh data-copy="curl https://www.example.com" } - $ curl https://www.example.com - # - # - # ... - ``` - ```` - -
- - ``` { .sh data-copy="curl https://www.example.com" } - $ curl https://www.example.com - # - # - # ... - ``` - -
- - We recommend to use this very sparingly, because sometimes it can be - confusing to copy something different to the clipboard than what is - actually displayed. - ### Code selection button