diff options
author | zhixuan <59254886+zhixuan2333@users.noreply.github.com> | 2022-01-19 03:12:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 03:12:29 +0300 |
commit | ca260db07e396fba61955e0262930fad3daa64cd (patch) | |
tree | 64ca613e69fe2a47d9d31e33f2f230108787ef84 /assets | |
parent | 4764a92df3f929f98741e59cee79fe90add523d3 (diff) |
fix(shortcode): conflict with gist shortcode (#455)
Diffstat (limited to 'assets')
-rw-r--r-- | assets/ts/main.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/ts/main.ts b/assets/ts/main.ts index d79c127..625bbbc 100644 --- a/assets/ts/main.ts +++ b/assets/ts/main.ts @@ -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 => { |