New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eleventy-plugin-markdown-copy-button

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eleventy-plugin-markdown-copy-button - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

package.json
{
"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>`;
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc