Commit 52d738e 1 parent 291070f commit 52d738e Copy full SHA for 52d738e
File tree 2 files changed +5
-1
lines changed
packages/vue-prism-editor
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
![ prism-editor] ( https://user-images.githubusercontent.com/342666/89706560-82f65380-d96f-11ea-94f9-e0fbf3220047.gif )
13
13
14
+ Editor works both for Vue 2.x and Vue 3.x and you are currently on the branch that supports Vue 2.x.
15
+ [ Go here for the Vue 3.x compatible version] ( https://github.com/koca/vue-prism-editor/tree/feature/next )
14
16
15
17
## Demo
16
18
Original file line number Diff line number Diff line change 11
11
12
12
![ prism-editor] ( https://user-images.githubusercontent.com/342666/89706560-82f65380-d96f-11ea-94f9-e0fbf3220047.gif )
13
13
14
+ Editor works both for Vue 2.x and Vue 3.x and you are currently on the branch that supports Vue 2.x.
15
+ [ Go here for the Vue 3.x compatible version] ( https://github.com/koca/vue-prism-editor/tree/feature/next )
14
16
15
17
## Demo
16
18
@@ -81,7 +83,7 @@ Register the component locally and use it (recommended)
81
83
data : () => ({ code: ' console.log("Hello World")' }),
82
84
methods: {
83
85
highlighter (code ) {
84
- return highlight (code, languages .js ); // returns html
86
+ return highlight (code, languages .js ); // languages.<insert language> to return html with markup
85
87
},
86
88
},
87
89
};
You can’t perform that action at this time.
0 commit comments