mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
fix(shortcode): conflict with gist shortcode (#455)
This commit is contained in:
parent
4764a92df3
commit
ca260db07e
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ let Stack = {
|
|||
/**
|
||||
* Add copy button to code block
|
||||
*/
|
||||
const codeBlocks = document.querySelectorAll('.article-content .highlight');
|
||||
const codeBlocks = document.querySelectorAll('.article-content > div.highlight');
|
||||
const copyText = `Copy`,
|
||||
copiedText = `Copied!`;
|
||||
codeBlocks.forEach(codeBlock => {
|
||||
|
|
Loading…
Reference in a new issue