Replies: 1 comment
-
The copy-to-clipboard button is mounted at this location: mkdocs-material/src/assets/javascripts/components/content/code/_/index.ts Lines 170 to 178 in cfe83cc You can fork the theme and add other buttons to your liking. Note that you have to go through the build process. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add some custom javascript that provides an "execute" or "run" button alongside the "copy to clipboard" button for code blocks. Is the "copy to clipboard" function accessible somehow so that I can refuse it grab the code block and do something with it ?
Any pointers as to how to achieve this would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions