diff options
Diffstat (limited to 'docs/dev/pkgdown.js')
-rw-r--r-- | docs/dev/pkgdown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/dev/pkgdown.js b/docs/dev/pkgdown.js index 7e7048fa..6f0eee40 100644 --- a/docs/dev/pkgdown.js +++ b/docs/dev/pkgdown.js @@ -80,7 +80,7 @@ $(document).ready(function() { var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' type = 'submit' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left auto' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>"; - $(".examples, div.sourceCode").addClass("hasCopyButton"); + $("div.sourceCode").addClass("hasCopyButton"); // Insert copy buttons: $(copyButton).prependTo(".hasCopyButton"); @@ -91,7 +91,7 @@ // Initialize clipboard: var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', { text: function(trigger) { - return trigger.parentNode.textContent; + return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, ""); } }); |