File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import { install as VueMonacoEditorPlugin } from '@guolao/vue-monaco-editor';
9
9
import VMdPreview from '@kangc/v-md-editor/lib/preview' ;
10
10
import '@kangc/v-md-editor/lib/style/preview.css' ;
11
11
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js' ;
12
+ import createCopyCodePlugin from '@kangc/v-md-editor/lib/plugins/copy-code/index' ;
13
+ import '@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css' ;
12
14
import '@kangc/v-md-editor/lib/theme/style/vuepress.css' ;
13
15
import './css/index.scss' ;
14
16
import './css/element-plus.scss' ;
@@ -47,6 +49,9 @@ VMdPreview.use(vuepressTheme, {
47
49
Prism
48
50
} ) ;
49
51
52
+ // copy code
53
+ VMdPreview . use ( createCopyCodePlugin ( ) ) ;
54
+
50
55
// highlightjs
51
56
import 'highlight.js/styles/stackoverflow-light.css' ;
52
57
// import hljs from 'highlight.js/lib/core';
You can’t perform that action at this time.
0 commit comments