1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Documentation

This commit is contained in:
squidfunk 2023-10-18 17:14:53 +02:00
parent b4392964b1
commit ee0a3c6ed2
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF

View File

@ -81,40 +81,6 @@ theme:
```
````
??? tip "Overriding the clipboard text"
<!-- md:version 9.4.4 -->
<!-- md:flag experimental -->
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
# <!doctype html>
# <html>
# ...
```
````
<div class="result" markdown>
``` { .sh data-copy="curl https://www.example.com" }
$ curl https://www.example.com
# <!doctype html>
# <html>
# ...
```
</div>
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
<!-- md:sponsors -->