1.3.0 • Published 3 years ago

vuepress-plugin-click-copy-markdown v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vuepress-plugin-click-copy-markdown

A vuepress plugin for Clipboard

npm GitHub stars GitHub license

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.
  }]
}