assets/js/just-the-docs.js in just-the-docs-0.4.0 vs assets/js/just-the-docs.js in just-the-docs-0.4.1
- old
+ new
@@ -486,10 +486,10 @@
{%- if site.enable_copy_code_button != false %}
jtd.onReady(function(){
- var codeBlocks = document.querySelectorAll('div.highlighter-rouge, div.listingblock, figure.highlight');
+ var codeBlocks = document.querySelectorAll('div.highlighter-rouge, div.listingblock > div.content, figure.highlight');
// note: the SVG svg-copied and svg-copy is only loaded as a Jekyll include if site.enable_copy_code_button is true; see _includes/icons/icons.html
var svgCopied = '<svg viewBox="0 0 24 24" class="copy-icon"><use xlink:href="#svg-copied"></use></svg>';
var svgCopy = '<svg viewBox="0 0 24 24" class="copy-icon"><use xlink:href="#svg-copy"></use></svg>';