fix(shortcode): fix gist shortcode

This commit is contained in:
zhixuan 2022-01-08 08:18:08 +09:00
parent d165621568
commit a2a12ea8e7
No known key found for this signature in database
GPG Key ID: 05D14AD50C51A06F

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 => {