From ee0a3c6ed2db495732a962f36d74349f31c1d2da Mon Sep 17 00:00:00 2001 From: squidfunk Date: Wed, 18 Oct 2023 17:14:53 +0200 Subject: [PATCH] Documentation --- docs/reference/code-blocks.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) 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