Skip to content

Commit 52d738e

Browse files
committed
chore: update readme
1 parent 291070f commit 52d738e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
1212
![prism-editor](https://user-images.githubusercontent.com/342666/89706560-82f65380-d96f-11ea-94f9-e0fbf3220047.gif)
1313

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)
1416

1517
## Demo
1618

packages/vue-prism-editor/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
1212
![prism-editor](https://user-images.githubusercontent.com/342666/89706560-82f65380-d96f-11ea-94f9-e0fbf3220047.gif)
1313

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)
1416

1517
## Demo
1618

@@ -81,7 +83,7 @@ Register the component locally and use it (recommended)
8183
data: () => ({ code: 'console.log("Hello World")' }),
8284
methods: {
8385
highlighter(code) {
84-
return highlight(code, languages.js); //returns html
86+
return highlight(code, languages.js); // languages.<insert language> to return html with markup
8587
},
8688
},
8789
};

0 commit comments

Comments
 (0)