Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
koca committed Oct 16, 2020
1 parent 291070f commit 52d738e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
![prism-editor](https://user-images.githubusercontent.com/342666/89706560-82f65380-d96f-11ea-94f9-e0fbf3220047.gif)

Editor works both for Vue 2.x and Vue 3.x and you are currently on the branch that supports Vue 2.x.
[Go here for the Vue 3.x compatible version](https://github.com/koca/vue-prism-editor/tree/feature/next)

## Demo

Expand Down
4 changes: 3 additions & 1 deletion packages/vue-prism-editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
![prism-editor](https://user-images.githubusercontent.com/342666/89706560-82f65380-d96f-11ea-94f9-e0fbf3220047.gif)

Editor works both for Vue 2.x and Vue 3.x and you are currently on the branch that supports Vue 2.x.
[Go here for the Vue 3.x compatible version](https://github.com/koca/vue-prism-editor/tree/feature/next)

## Demo

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

0 comments on commit 52d738e

Please sign in to comment.