bytemd-plugin-copy-code
v1.0.0
Published
bytemd plugin for copy code
Downloads
43
Maintainers
Readme
bytemd-plugin-copy-code
一个bytemd的插件,用于给代码片段添加复制按钮用于赋值
Usage
import copyCode from "bytemd-plugin-copy-code"
import "bytemd-plugin-copy-code/dist/style/index.css"
const plugins = [
copyCode({
copySuccess: text => { console.log("复制成功") },
copyError: err => {},
copyRight: "追加版权信息",
//...
})
]