1.3.0 • Published 3 years ago
vuepress-plugin-click-copy-markdown v1.3.0
vuepress-plugin-click-copy-markdown
A vuepress plugin for Clipboard
Install
# install
npm i vuepress-plugin-click-copy-markdown -D
# or use yarn
yarn add vuepress-plugin-click-copy-markdown -D
Usage
vuepress config
module.exports = {
plugins: ['one-click-copy']
}
Options
The plugin supports these configurations.
module.exports = {
plugins: [require('xxx/index.js'), {
ele: ['div[class*="language-"] pre', 'div[class*="aside-code"] aside'], // String or Array
title: 'copy',
tips: 'click to copy',
showIcon: false // boolean tips: When true, the title is not an HTML tag string, and the default icon is displayed.
}]
}