mirror of
https://github.com/KevinMidboe/schleppe-lab.git
synced 2025-10-29 17:50:39 +00:00
Copy btn on code blocks, tweaked code block styling
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// This assumes that you're using Rouge; if not, update the selector
|
||||
// const codeBlocks = document.querySelectorAll('.code-header + .highlighter-rouge');
|
||||
const codeBlocks = document.querySelectorAll('.highlight');
|
||||
const codeBlocks = document.querySelectorAll('div.highlight');
|
||||
const copyCodeButtons = document.querySelectorAll('.copy-code-button');
|
||||
|
||||
codeBlocks.forEach((codeBlock) => {
|
||||
|
||||
Reference in New Issue
Block a user