vuepress-plugin-td-copy-code

1.0.2 • Public • Published

Installation

$ npm install vuepress-plugin-td-copy-code

How to Use

Configure in your project file .vuepress/config.js

module.exports = {
    plugins: [['td-copy-code', true]]
}

Options

module.exports = {
  plugins: [
    ["td-copy-code", {
        selector: 'div[class*="language-"] pre',//默认
        position: 'top',//copy按钮所在位置,top和bottom两个值可选
        }
    ]
  ]
}

Readme

Keywords

Package Sidebar

Install

npm i vuepress-plugin-td-copy-code

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

4.84 kB

Total Files

8

Last publish

Collaborators

  • youniku