项目作者: Sanm-ZH

项目描述 :
vuepress-plugin click copy markdown content.
高级语言: JavaScript
项目地址: git://github.com/Sanm-ZH/vuepress-plugin-click-copy-markdown.git
创建时间: 2021-03-18T02:48:57Z
项目社区:https://github.com/Sanm-ZH/vuepress-plugin-click-copy-markdown

开源协议:MIT License

下载


vuepress-plugin-click-copy-markdown

A vuepress plugin for Clipboard

npm
GitHub stars
GitHub license

Install

  1. # install
  2. npm i vuepress-plugin-click-copy-markdown -D
  3. # or use yarn
  4. yarn add vuepress-plugin-click-copy-markdown -D

Usage

vuepress config

  1. module.exports = {
  2. plugins: ['vuepress-plugin-click-copy-markdown']
  3. }

Options

The plugin supports these configurations.

  1. module.exports = {
  2. plugins: ['vuepress-plugin-click-copy-markdown', {
  3. ele: ['div[class*="language-"] pre', 'div[class*="aside-code"] aside'], // String or Array
  4. title: 'copy',
  5. tips: 'click to copy',
  6. showIcon: false, // boolean tips: When true, the title is not an HTML tag string, and the default icon is displayed.
  7. copyMessage: '复制成功,请粘贴后使用',
  8. closeWait: 3000
  9. }]
  10. }