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两个值可选
}
]
]
}