1.0.2 • Published 2 years ago
vuepress-plugin-td-copy-code v1.0.2
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两个值可选
}
]
]
}