fix(shortcode): conflict with gist shortcode (#455)

This commit is contained in:
zhixuan
2022-01-19 01:12:29 +01:00
committed by GitHub
parent 4764a92df3
commit ca260db07e
+1 -1
View File
@@ -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 => {