eleventy-plugin-markdown-copy-button
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"name": "eleventy-plugin-markdown-copy-button", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "An 11ty plugin which adds a button which copies markdown code snippets", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,3 +0,3 @@ | ||
module.exports.copyComponentRenderer = (content, copiedText, copyText) => { | ||
module.exports.copyComponentRenderer = (content, copyText, copiedText) => { | ||
return `<copy-component oncopy="this.querySelector('[slot=button]').textContent='${copiedText}'" style="display: block;">${content}<button style="text-transform: uppercase" slot="button">${copyText}</button></copy-component>`; | ||
}; |