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

This commit is contained in:
zhixuan 2022-01-19 09:12:29 +09:00 committed by GitHub
parent 4764a92df3
commit ca260db07e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ let Stack = {
/** /**
* Add copy button to code block * Add copy button to code block
*/ */
const codeBlocks = document.querySelectorAll('.article-content .highlight'); const codeBlocks = document.querySelectorAll('.article-content > div.highlight');
const copyText = `Copy`, const copyText = `Copy`,
copiedText = `Copied!`; copiedText = `Copied!`;
codeBlocks.forEach(codeBlock => { codeBlocks.forEach(codeBlock => {