vuepress-plugin-copy-code2

Copy Code plugin for vuepress

Usage no npm install needed!

<script type="module">
  import vuepressPluginCopyCode2 from 'https://cdn.skypack.dev/vuepress-plugin-copy-code2';
</script>

README

vuepress-plugin-copy-code2

VuePress copy code plugin📋 / VuePress 代码复制插件📋

Version Downloads Size

VuePress copy code plugin📋 / VuePress 代码复制插件 📋

Official Docs | 官方文档

Install

npm i -D vuepress-plugin-copy-code2

Or

yarn add -D vuepress-plugin-copy-code2

Migrate from V1

Renamed from @mr-hope/vuepress-copy-code to vuepress-plugin-copy-code2. ⚠

  • option delay, which means the delay registing copy buttons when page loaded or navigated new

  • option locale for i18n config new

  • Option pure (default false) for handling fancy styles. new


安装

npm i -D vuepress-plugin-copy-code2

yarn add -D vuepress-plugin-copy-code2

从 V1 迁移

名称从 @mr-hope/vuepress-copy-code 改为 vuepress-plugin-copy-code2. ⚠

  • 选项 delay,控制页面加载和切换后注册复制按钮的延迟 新增

  • 选项 locale 用于国际化配置 新增

  • 选项 pure (默认 false) 控制华丽的样式 新增